Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008681/0.0008681, allocations: 100.6 kB / 16.95 MB, free: 6.098 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.00108/0.00108, allocations: 179 kB / 17.84 MB, free: 5.723 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.404/1.404, allocations: 205.4 MB / 224 MB, free: 13.14 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.0005103/0.0005103, allocations: 12 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1085, allocations: 47.59 MB / 328.4 MB, free: 4.062 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01856/0.1271, allocations: 17.84 MB / 346.2 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01179/0.1389, allocations: 5.587 MB / 351.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003867/0.1429, allocations: 107.5 kB / 351.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004387/0.1473, allocations: 0.9938 MB / 352.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00783/0.1551, allocations: 1.573 MB / 354.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003936/0.1591, allocations: 0.8265 MB / 355.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01407/0.1732, allocations: 6.149 MB / 361.4 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008797/0.182, allocations: 3.565 MB / 365 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004243/0.1863, allocations: 2 MB / 367 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005184/0.1915, allocations: 2.669 MB / 369.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001756/0.1933, allocations: 328 kB / 370 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002784/0.1961, allocations: 0.5622 MB / 370.6 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002284/0.1985, allocations: 1.37 MB / 371.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002545/0.201, allocations: 1.132 MB / 373.1 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2049/0.4059, allocations: 8.358 MB / 381.4 MB, free: 19.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.4059, allocations: 1.375 kB / 381.4 MB, free: 19.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.406, allocations: 0 / 381.4 MB, free: 19.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004111/0.4064, allocations: 0 / 381.4 MB, free: 19.04 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01794/0.4243, allocations: 5.578 MB / 387 MB, free: 16.92 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.867e-05/0.4244, allocations: 8.938 kB / 387 MB, free: 16.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01059/0.435, allocations: 1.012 MB / 388 MB, free: 16.61 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01233/0.4474, allocations: 3.184 MB / 391.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009755/0.4484, allocations: 404.2 kB / 391.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002847/0.4513, allocations: 0.5015 MB / 392.1 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0259/0.4772, allocations: 6.745 MB / 398.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001982/0.4774, allocations: 13.25 kB / 398.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009307/0.4784, allocations: 209.3 kB / 399.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003096/0.4787, allocations: 241.6 kB / 399.3 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01608/0.4948, allocations: 5.736 MB / 405 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04159/0.5364, allocations: 21.19 MB / 426.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009649/0.5461, allocations: 8.547 MB / 434.8 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003968/0.5501, allocations: 2.134 MB / 436.9 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01403/0.5642, allocations: 5.939 MB / 442.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.5643, allocations: 56.56 kB / 442.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 4.969e-06/0.5643, allocations: 0 / 442.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02483/0.5891, allocations: 10.41 MB / 453.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.5892, allocations: 81.41 kB / 453.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005854/0.5951, allocations: 2.881 MB / 456.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005834/0.5957, allocations: 61.7 kB / 456.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002604/0.5983, allocations: 2.375 MB / 458.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/0.5997, allocations: 0.7602 MB / 459.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005535/0.6002, allocations: 60 kB / 459.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003695/0.6006, allocations: 428 kB / 459.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003357/0.604, allocations: 1.278 MB / 461.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003817/0.6078, allocations: 2.174 MB / 463.4 MB, free: 9.129 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.6115, allocations: 1.652 MB / 465.1 MB, free: 7.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.753e-05/0.6116, allocations: 8 kB / 465.1 MB, free: 7.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.0107/0.6223, allocations: 4.456 MB / 469.5 MB, free: 3.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.411e-05/0.6224, allocations: 16 kB / 469.5 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.857e-05/0.6225, allocations: 28 kB / 469.6 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/0.6238, allocations: 0.5134 MB / 470.1 MB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002888/0.6267, allocations: 0.6933 MB / 470.8 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.6374, allocations: 9.33 MB / 480.1 MB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004167/0.6416, allocations: 183.7 kB / 480.3 MB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007367/0.6423, allocations: 128 kB / 480.4 MB, free: 7.684 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00449/0.6469, allocations: 1.521 MB / 481.9 MB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001387/0.6483, allocations: 328 kB / 482.2 MB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008965/0.6572, allocations: 3.891 MB / 486.1 MB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.431e-05/0.6573, allocations: 28.03 kB / 486.2 MB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-05/0.6574, allocations: 8 kB / 486.2 MB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.739e-05/0.6574, allocations: 15.95 kB / 486.2 MB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01784/0.6753, allocations: 8.499 MB / 494.7 MB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.6753, allocations: 10.5 kB / 494.7 MB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.677, allocations: 384.7 kB / 495.1 MB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/0.679, allocations: 0.7164 MB / 495.8 MB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00025/0.6792, allocations: 59.97 kB / 495.8 MB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01545/0.6947, allocations: 15.19 MB / 0.4991 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/0.6947, allocations: 7.562 kB / 0.4991 GB, free: 7.926 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/0.705, allocations: 5.573 MB / 0.5045 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001963/0.707, allocations: 0.661 MB / 0.5052 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001101/0.7081, allocations: 55.98 kB / 0.5052 GB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002231/0.7103, allocations: 139.9 kB / 0.5053 GB, free: 1.367 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005904/0.711, allocations: 173.3 kB / 0.5055 GB, free: 1.203 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/0.7113, allocations: 67.36 kB / 0.5056 GB, free: 1.141 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004218/0.7155, allocations: 1.944 MB / 0.5075 GB, free: 15.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.422e-06/0.7155, allocations: 0 / 0.5075 GB, free: 15.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004591/0.7201, allocations: 0.9401 MB / 0.5084 GB, free: 14.26 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * 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 {(1,100.0%) 5,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007636/0.7209, allocations: 205.5 kB / 0.5086 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007514/0.7284, allocations: 3.971 MB / 0.5125 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.7285, allocations: 0 / 0.5125 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00503/0.7335, allocations: 2.664 MB / 0.5151 GB, free: 7.379 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005923/0.7395, allocations: 0.812 MB / 0.5159 GB, free: 6.566 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02258/0.7621, allocations: 11.42 MB / 0.527 GB, free: 11.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005309/0.7675, allocations: 3.294 MB / 0.5302 GB, free: 7.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003654/0.7712, allocations: 0.7617 MB / 0.531 GB, free: 6.984 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.7723, allocations: 219.4 kB / 0.5312 GB, free: 6.77 MB / 446.1 MB Notification: Performance of SimCode: time 1.232e-06/0.7723, allocations: 0 / 0.5312 GB, free: 6.77 MB / 446.1 MB Notification: Performance of Templates: time 0.2659/1.038, allocations: 43.79 MB / 0.5739 GB, free: 137.5 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches