Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 99.62 kB / 16.94 MB, free: 6.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 180.4 kB / 17.83 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004455, allocations: 8.781 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1015, allocations: 47.58 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.01955/0.1211, allocations: 17.42 MB / 345.8 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01328/0.1345, allocations: 6.24 MB / 352 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003821/0.1383, allocations: 115.4 kB / 352.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004133/0.1425, allocations: 1.115 MB / 353.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006993/0.1495, allocations: 1.823 MB / 355 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003221/0.1527, allocations: 0.8616 MB / 355.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009375/0.1621, allocations: 4.372 MB / 360.3 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006998/0.1691, allocations: 3.698 MB / 364 MB, free: 296 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003566/0.1727, allocations: 2.02 MB / 366 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004441/0.1772, allocations: 2.513 MB / 368.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001648/0.1789, allocations: 336 kB / 368.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00308/0.182, allocations: 0.5503 MB / 369.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002025/0.184, allocations: 1.367 MB / 370.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00183/0.1858, allocations: 1.198 MB / 372 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2086/0.3944, allocations: 8.665 MB / 380.6 MB, free: 18.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3945, allocations: 0 / 380.6 MB, free: 18.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.556e-06/0.3945, allocations: 0.9375 kB / 380.6 MB, free: 18.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004721/0.395, allocations: 0 / 380.6 MB, free: 18.45 MB / 318.1 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.01871/0.4137, allocations: 5.845 MB / 386.5 MB, free: 16.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.4137, allocations: 8.906 kB / 386.5 MB, free: 16.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007201/0.421, allocations: 1.065 MB / 387.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.4315, allocations: 3.407 MB / 390.9 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005977/0.4322, allocations: 418.8 kB / 391.4 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002231/0.4344, allocations: 0.5303 MB / 391.9 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02026/0.4547, allocations: 6.978 MB / 398.9 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001849/0.4549, allocations: 10.47 kB / 398.9 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006543/0.4556, allocations: 220.5 kB / 399.1 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002635/0.4559, allocations: 260.7 kB / 399.3 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01295/0.4688, allocations: 5.915 MB / 405.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04574/0.5146, allocations: 22.43 MB / 427.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009942/0.5246, allocations: 8.28 MB / 436 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/0.5382, allocations: 5.144 MB / 441.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.924e-05/0.5384, allocations: 68.55 kB / 441.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=234): time 4.599e-06/0.5384, allocations: 0 / 441.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=256): time 0.02801/0.5664, allocations: 11.75 MB / 452.9 MB, free: 3.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.5665, allocations: 84.66 kB / 453 MB, free: 3.227 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00692/0.5734, allocations: 3.009 MB / 456 MB, free: 220 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004366/0.5739, allocations: 69.7 kB / 456.1 MB, free: 144 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002218/0.5761, allocations: 2.485 MB / 458.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00104/0.5772, allocations: 0.8788 MB / 459.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003082/0.5775, allocations: 64 kB / 459.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002905/0.5778, allocations: 440.8 kB / 460 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002619/0.5804, allocations: 1.377 MB / 461.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003261/0.5837, allocations: 2.359 MB / 463.7 MB, free: 8.113 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003211/0.5869, allocations: 1.784 MB / 465.5 MB, free: 6.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.829e-05/0.587, allocations: 8 kB / 465.5 MB, free: 6.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.009115/0.5961, allocations: 4.805 MB / 470.3 MB, free: 1.617 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.245e-05/0.5962, allocations: 16 kB / 470.3 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.402e-05/0.5963, allocations: 32 kB / 470.3 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.5975, allocations: 0.5254 MB / 470.9 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002974/0.6005, allocations: 0.785 MB / 471.6 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009507/0.61, allocations: 9.532 MB / 481.2 MB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003306/0.6134, allocations: 199.8 kB / 481.4 MB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005437/0.6139, allocations: 140 kB / 481.5 MB, free: 5.816 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 140 * 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 (391): * Single equations (assignments): 384 * 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: 5 * 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: 5 {(1,100.0%) 1,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00354/0.6175, allocations: 1.575 MB / 483.1 MB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009383/0.6184, allocations: 351.5 kB / 483.4 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007185/0.6256, allocations: 4.209 MB / 487.6 MB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.342e-05/0.6257, allocations: 24 kB / 487.7 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.552e-05/0.6257, allocations: 8 kB / 487.7 MB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.453e-05/0.6258, allocations: 14.03 kB / 487.7 MB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0173/0.6431, allocations: 9.274 MB / 497 MB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.6431, allocations: 4 kB / 497 MB, free: 6.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/0.645, allocations: 448.5 kB / 497.4 MB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/0.6467, allocations: 0.7448 MB / 498.1 MB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001807/0.6469, allocations: 67.97 kB / 498.2 MB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01401/0.661, allocations: 15.48 MB / 0.5016 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/0.661, allocations: 11.28 kB / 0.5017 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009965/0.671, allocations: 6.675 MB / 0.5082 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002061/0.6731, allocations: 0.7036 MB / 0.5089 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000592/0.6737, allocations: 67.98 kB / 0.5089 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/0.6753, allocations: 151.9 kB / 0.5091 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004271/0.6757, allocations: 196.6 kB / 0.5093 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/0.6759, allocations: 79.94 kB / 0.5093 GB, free: 12.24 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003173/0.6791, allocations: 2.016 MB / 0.5113 GB, free: 10.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6791, allocations: 0 / 0.5113 GB, free: 10.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003924/0.683, allocations: 0.9962 MB / 0.5123 GB, free: 9.234 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (217): * Single equations (assignments): 209 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005408/0.6836, allocations: 223.4 kB / 0.5125 GB, free: 9.031 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006626/0.6902, allocations: 4.248 MB / 0.5166 GB, free: 4.777 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.6902, allocations: 4.125 kB / 0.5166 GB, free: 4.773 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004161/0.6944, allocations: 2.833 MB / 0.5194 GB, free: 1.891 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004359/0.6988, allocations: 0.8757 MB / 0.5203 GB, free: 1.016 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01887/0.7177, allocations: 12.11 MB / 0.5321 GB, free: 4.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003526/0.7213, allocations: 3.509 MB / 0.5355 GB, free: 1.273 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003041/0.7243, allocations: 0.823 MB / 0.5363 GB, free: 460 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006292/0.725, allocations: 243.4 kB / 0.5366 GB, free: 216 kB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.725, allocations: 0 / 0.5366 GB, free: 216 kB / 446.1 MB Notification: Performance of Templates: time 0.2655/0.9905, allocations: 46.88 MB / 0.5823 GB, free: 132 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches