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.0009502/0.0009501, allocations: 96.48 kB / 16.93 MB, free: 5.984 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.0009831/0.000983, allocations: 181.2 kB / 17.82 MB, free: 5.652 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.391/1.391, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004993/0.0004993, allocations: 23.28 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1022, allocations: 47.57 MB / 328.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01869/0.1209, allocations: 16.25 MB / 344.6 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.1341, allocations: 5.769 MB / 350.4 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003688/0.1379, allocations: 107.5 kB / 350.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003522/0.1414, allocations: 1.006 MB / 351.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006544/0.148, allocations: 1.69 MB / 353.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003202/0.1512, allocations: 0.8226 MB / 354 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009342/0.1606, allocations: 4.08 MB / 358.1 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005406/0.166, allocations: 3.561 MB / 361.6 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003911/0.17, allocations: 1.915 MB / 363.5 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00431/0.1743, allocations: 2.397 MB / 365.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001337/0.1757, allocations: 320 kB / 366.2 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002429/0.1781, allocations: 0.5308 MB / 366.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001579/0.1797, allocations: 1.316 MB / 368.1 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002219/0.1819, allocations: 1.128 MB / 369.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0106/0.1926, allocations: 8.305 MB / 377.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1926, allocations: 0 / 377.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.1926, allocations: 0 / 377.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003439/0.193, allocations: 0 / 377.5 MB, free: 2.695 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.2245/0.4175, allocations: 5.567 MB / 383.1 MB, free: 24.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.4176, allocations: 10.59 kB / 383.1 MB, free: 24.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006783/0.4244, allocations: 1.005 MB / 384.1 MB, free: 24.38 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008685/0.4331, allocations: 3.227 MB / 387.3 MB, free: 23.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005461/0.4337, allocations: 398 kB / 387.7 MB, free: 23.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001817/0.4355, allocations: 0.4983 MB / 388.2 MB, free: 23.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01712/0.4526, allocations: 6.703 MB / 394.9 MB, free: 23.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001577/0.4528, allocations: 14.78 kB / 394.9 MB, free: 23.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006299/0.4535, allocations: 209.5 kB / 395.1 MB, free: 23.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002643/0.4537, allocations: 242.2 kB / 395.4 MB, free: 23.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01153/0.4653, allocations: 5.727 MB / 401.1 MB, free: 23.03 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03486/0.5002, allocations: 21.13 MB / 422.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007534/0.5077, allocations: 8.547 MB / 430.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/0.5182, allocations: 4.975 MB / 435.8 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.566e-05/0.5183, allocations: 64.25 kB / 435.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=219): time 4.439e-06/0.5183, allocations: 0 / 435.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=238): time 0.02412/0.5425, allocations: 11.05 MB / 446.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.5426, allocations: 77.39 kB / 446.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0044/0.547, allocations: 2.809 MB / 449.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004304/0.5474, allocations: 61.7 kB / 449.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001654/0.5491, allocations: 2.333 MB / 452.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009683/0.5501, allocations: 0.8196 MB / 453 MB, free: 4.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.5502, allocations: 60 kB / 453 MB, free: 4.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002104/0.5505, allocations: 424.2 kB / 453.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002255/0.5527, allocations: 1.318 MB / 454.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002993/0.5557, allocations: 2.193 MB / 456.9 MB, free: 492 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00291/0.5587, allocations: 1.686 MB / 458.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.112e-05/0.5587, allocations: 8 kB / 458.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.00831/0.567, allocations: 4.546 MB / 463.2 MB, free: 10.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.426e-05/0.5672, allocations: 16.53 kB / 463.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.402e-05/0.5672, allocations: 32 kB / 463.2 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.5685, allocations: 0.5178 MB / 463.7 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003135/0.5717, allocations: 0.7239 MB / 464.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009155/0.5808, allocations: 9.441 MB / 473.9 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003349/0.5842, allocations: 183.9 kB / 474.1 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004589/0.5847, allocations: 132 kB / 474.2 MB, free: 14.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (358): * Single equations (assignments): 351 * 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%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003371/0.5881, allocations: 1.528 MB / 475.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00076/0.5889, allocations: 320 kB / 476.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00686/0.5957, allocations: 4.037 MB / 480.1 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/0.5958, allocations: 23.95 kB / 480.1 MB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/0.5958, allocations: 8 kB / 480.1 MB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.058e-05/0.5958, allocations: 15.95 kB / 480.1 MB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01536/0.6112, allocations: 8.811 MB / 489 MB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.59e-05/0.6113, allocations: 11.94 kB / 489 MB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/0.6131, allocations: 425.3 kB / 489.4 MB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001904/0.615, allocations: 0.7194 MB / 490.1 MB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002013/0.6152, allocations: 67.97 kB / 490.2 MB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01405/0.6293, allocations: 15.36 MB / 0.4937 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.6293, allocations: 8.031 kB / 0.4937 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009621/0.6389, allocations: 6.272 MB / 0.4998 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002008/0.641, allocations: 0.661 MB / 0.5005 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006806/0.6417, allocations: 59.98 kB / 0.5005 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/0.6434, allocations: 151.9 kB / 0.5007 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005079/0.6439, allocations: 180.4 kB / 0.5008 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/0.644, allocations: 75.94 kB / 0.5009 GB, free: 6.602 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003294/0.6473, allocations: 1.893 MB / 0.5028 GB, free: 4.711 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6474, allocations: 0 / 0.5028 GB, free: 4.711 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004647/0.652, allocations: 0.94 MB / 0.5037 GB, free: 3.773 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (201): * Single equations (assignments): 193 * 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%) 11,(1,100.0%) 3,(1,100.0%) 5,(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.0008396/0.6529, allocations: 210.6 kB / 0.5039 GB, free: 3.582 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007421/0.6603, allocations: 4.071 MB / 0.5079 GB, free: 15.51 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/0.6604, allocations: 0 / 0.5079 GB, free: 15.51 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004624/0.665, allocations: 2.734 MB / 0.5105 GB, free: 12.72 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004379/0.6694, allocations: 0.7832 MB / 0.5113 GB, free: 11.94 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01966/0.6891, allocations: 11.53 MB / 0.5225 GB, free: 356 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003791/0.6929, allocations: 3.392 MB / 0.5259 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002894/0.6958, allocations: 0.7698 MB / 0.5266 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007064/0.6966, allocations: 227.4 kB / 0.5268 GB, free: 11.92 MB / 446.1 MB Notification: Performance of SimCode: time 8.21e-07/0.6966, allocations: 0 / 0.5268 GB, free: 11.92 MB / 446.1 MB Notification: Performance of Templates: time 0.2693/0.9659, allocations: 43.54 MB / 0.5694 GB, free: 141.8 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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