Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009851/0.0009851, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.5 MB / 245.3 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007724/0.0007725, allocations: 93.17 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002542, allocations: 4 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2122, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3394/0.5517, allocations: 132.7 MB / 0.5287 GB, free: 47.19 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.552, allocations: 98.7 kB / 0.5288 GB, free: 47.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2777/0.8297, allocations: 127.4 MB / 0.6532 GB, free: 9.527 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.8298, allocations: 0 / 0.6532 GB, free: 9.527 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004363/0.8302, allocations: 143.8 kB / 0.6534 GB, free: 9.387 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01635/0.8466, allocations: 5.632 MB / 0.6589 GB, free: 3.672 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.8466, allocations: 8.031 kB / 0.6589 GB, free: 3.664 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005862/0.8525, allocations: 1.024 MB / 0.6599 GB, free: 2.633 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009435/0.862, allocations: 4.089 MB / 0.6639 GB, free: 14.46 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000354/0.8624, allocations: 411.1 kB / 0.6643 GB, free: 14.06 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00219/0.8646, allocations: 0.5235 MB / 0.6648 GB, free: 13.54 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02383/0.8884, allocations: 7.006 MB / 0.6716 GB, free: 6.332 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004171/0.8889, allocations: 15.83 kB / 0.6716 GB, free: 6.316 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002326/0.8913, allocations: 227.9 kB / 0.6718 GB, free: 6.094 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003961/0.8917, allocations: 250.6 kB / 0.6721 GB, free: 5.848 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02076/0.9125, allocations: 5.629 MB / 0.6776 GB, free: 216 kB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3053/1.218, allocations: 22.72 MB / 0.6998 GB, free: 59.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007561/1.225, allocations: 8.656 MB / 0.7082 GB, free: 53.31 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003285/1.229, allocations: 2.204 MB / 0.7104 GB, free: 53.27 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01157/1.24, allocations: 6.606 MB / 0.7168 GB, free: 52.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/1.24, allocations: 56.59 kB / 0.7169 GB, free: 52 MB / 458.7 MB Notification: Performance of pre-optimization done (n=229): time 4.648e-06/1.24, allocations: 0 / 0.7169 GB, free: 52 MB / 458.7 MB Notification: Performance of matching and sorting (n=256): time 0.02477/1.265, allocations: 12.72 MB / 0.7293 GB, free: 49.62 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/1.265, allocations: 84.12 kB / 0.7294 GB, free: 49.55 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004917/1.27, allocations: 3.14 MB / 0.7324 GB, free: 49.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004682/1.271, allocations: 64.98 kB / 0.7325 GB, free: 49.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/1.272, allocations: 2.499 MB / 0.7349 GB, free: 48.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007812/1.273, allocations: 0.8777 MB / 0.7358 GB, free: 47.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/1.273, allocations: 64.56 kB / 0.7359 GB, free: 47.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/1.273, allocations: 438.5 kB / 0.7363 GB, free: 47.44 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00221/1.276, allocations: 1.407 MB / 0.7377 GB, free: 47.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002588/1.278, allocations: 2.397 MB / 0.74 GB, free: 46.06 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00489/1.283, allocations: 4.057 MB / 0.744 GB, free: 43.61 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.65e-05/1.283, allocations: 9.219 kB / 0.744 GB, free: 43.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.008391/1.291, allocations: 4.946 MB / 0.7488 GB, free: 41.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/1.292, allocations: 17.34 kB / 0.7488 GB, free: 41.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.915e-05/1.292, allocations: 34.22 kB / 0.7489 GB, free: 41.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001639/1.293, allocations: 0.72 MB / 0.7496 GB, free: 41.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002618/1.296, allocations: 0.7563 MB / 0.7503 GB, free: 41.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009275/1.305, allocations: 9.797 MB / 0.7599 GB, free: 34.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004094/1.309, allocations: 206.5 kB / 0.7601 GB, free: 34.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004068/1.31, allocations: 142 kB / 0.7602 GB, free: 34.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (380): * Single equations (assignments): 374 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,75.0%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003787/1.314, allocations: 1.582 MB / 0.7617 GB, free: 33.46 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008691/1.314, allocations: 350.9 kB / 0.7621 GB, free: 33.28 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007208/1.322, allocations: 4.398 MB / 0.7664 GB, free: 31.38 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/1.322, allocations: 28.97 kB / 0.7664 GB, free: 31.38 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/1.322, allocations: 11.47 kB / 0.7664 GB, free: 31.38 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.193e-05/1.322, allocations: 13.88 kB / 0.7664 GB, free: 31.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01648/1.338, allocations: 9.383 MB / 0.7756 GB, free: 27.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/1.338, allocations: 3.375 kB / 0.7756 GB, free: 27.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/1.34, allocations: 417 kB / 0.776 GB, free: 27.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002341/1.342, allocations: 0.9578 MB / 0.7769 GB, free: 27.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001866/1.342, allocations: 62.95 kB / 0.777 GB, free: 27.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01418/1.357, allocations: 16.02 MB / 0.7926 GB, free: 14.78 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/1.357, allocations: 7.688 kB / 0.7926 GB, free: 14.78 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01063/1.367, allocations: 6.244 MB / 0.7987 GB, free: 11.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002134/1.37, allocations: 0.7313 MB / 0.7994 GB, free: 11.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000698/1.37, allocations: 59.94 kB / 0.7995 GB, free: 11.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001753/1.372, allocations: 160 kB / 0.7996 GB, free: 11.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005333/1.373, allocations: 198.5 kB / 0.7998 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000165/1.373, allocations: 74.09 kB / 0.7999 GB, free: 11.3 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003516/1.376, allocations: 2.102 MB / 0.802 GB, free: 10.52 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.376, allocations: 3.312 kB / 0.802 GB, free: 10.52 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004969/1.381, allocations: 1.103 MB / 0.803 GB, free: 10.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001056/1.382, allocations: 0.5467 MB / 0.8036 GB, free: 10.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007482/1.39, allocations: 4.335 MB / 0.8078 GB, free: 7.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/1.39, allocations: 0 / 0.8078 GB, free: 7.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00524/1.395, allocations: 2.877 MB / 0.8106 GB, free: 5.086 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009279/1.404, allocations: 0.9186 MB / 0.8115 GB, free: 4.371 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02518/1.43, allocations: 12.08 MB / 0.8233 GB, free: 9.246 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004249/1.434, allocations: 3.353 MB / 0.8266 GB, free: 6.648 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001469/1.436, allocations: 269.2 kB / 0.8268 GB, free: 6.406 MB / 474.7 MB Notification: Performance of SimCode: time 1.473e-06/1.436, allocations: 8 kB / 0.8269 GB, free: 6.398 MB / 474.7 MB Notification: Performance of Templates: time 0.7312/2.167, allocations: 241.1 MB / 1.062 GB, free: 113.6 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches