Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 94.88 kB / 16.3 MB, free: 5.996 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.001307/0.001307, allocations: 183.5 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002162/0.0002163, allocations: 7.219 kB / 300.7 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1004, allocations: 50.43 MB / 351.2 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01069/0.1111, allocations: 11.01 MB / 362.2 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007714/0.1189, allocations: 4.692 MB / 366.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001729/0.1206, allocations: 71.69 kB / 366.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002628/0.1233, allocations: 0.8046 MB / 367.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004114/0.1274, allocations: 1.223 MB / 369 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002043/0.1295, allocations: 0.6745 MB / 369.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004899/0.1344, allocations: 2.947 MB / 372.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002855/0.1372, allocations: 2.306 MB / 374.9 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002351/0.1396, allocations: 1.351 MB / 376.2 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002077/0.1417, allocations: 1.611 MB / 377.8 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004109/0.1421, allocations: 220 kB / 378.1 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00144/0.1436, allocations: 0.5268 MB / 378.6 MB, free: 168 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008026/0.1444, allocations: 0.9385 MB / 379.5 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008177/0.1452, allocations: 0.8043 MB / 380.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005362/0.1506, allocations: 5.925 MB / 386.3 MB, free: 8.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1506, allocations: 0 / 386.3 MB, free: 8.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1506, allocations: 0 / 386.3 MB, free: 8.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001846/0.1508, allocations: 0 / 386.3 MB, free: 8.469 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.009952/0.1608, allocations: 4.252 MB / 390.5 MB, free: 4.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.1608, allocations: 12.03 kB / 390.5 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004506/0.1653, allocations: 0.8848 MB / 391.4 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004963/0.1703, allocations: 2.608 MB / 394 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.1705, allocations: 254.7 kB / 394.3 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005332/0.171, allocations: 336 kB / 394.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007217/0.1783, allocations: 4.492 MB / 399.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.479e-05/0.1784, allocations: 7.906 kB / 399.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003158/0.1787, allocations: 140 kB / 399.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/0.1789, allocations: 154.7 kB / 399.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006462/0.1853, allocations: 3.891 MB / 403.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02178/0.2071, allocations: 14.17 MB / 417.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007318/0.2145, allocations: 6.932 MB / 424.4 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1755/0.39, allocations: 3.635 MB / 428 MB, free: 59.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.3902, allocations: 58.12 kB / 428.1 MB, free: 59.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=169): time 4.068e-06/0.3902, allocations: 0 / 428.1 MB, free: 59.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=189): time 0.0177/0.4079, allocations: 8.028 MB / 436.1 MB, free: 58.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.4079, allocations: 72.03 kB / 436.2 MB, free: 58.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/0.4118, allocations: 2.567 MB / 438.7 MB, free: 57.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000233/0.4121, allocations: 56.7 kB / 438.8 MB, free: 57.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/0.4131, allocations: 1.609 MB / 440.4 MB, free: 56.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004782/0.4136, allocations: 0.6352 MB / 441 MB, free: 56.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.482e-05/0.4137, allocations: 35.88 kB / 441.1 MB, free: 55.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.609e-05/0.4138, allocations: 386.6 kB / 441.4 MB, free: 55.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/0.4152, allocations: 0.91 MB / 442.3 MB, free: 55.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.4166, allocations: 1.282 MB / 443.6 MB, free: 54.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.4182, allocations: 1.127 MB / 444.8 MB, free: 53.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.4182, allocations: 3.938 kB / 444.8 MB, free: 53.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.005006/0.4232, allocations: 3.058 MB / 447.8 MB, free: 52.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.4233, allocations: 11.56 kB / 447.8 MB, free: 52.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.108e-05/0.4233, allocations: 9.625 kB / 447.8 MB, free: 52.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0014/0.4247, allocations: 0.5592 MB / 448.4 MB, free: 52.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/0.4264, allocations: 433.9 kB / 448.8 MB, free: 52.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007366/0.4337, allocations: 7.231 MB / 456.1 MB, free: 47.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.4355, allocations: 99.94 kB / 456.2 MB, free: 46.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001641/0.4357, allocations: 75.92 kB / 456.2 MB, free: 46.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (199): * Single equations (assignments): 195 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,75.5%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001779/0.4374, allocations: 1.157 MB / 457.4 MB, free: 45.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004646/0.4379, allocations: 252.9 kB / 457.6 MB, free: 45.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004509/0.4424, allocations: 2.907 MB / 460.5 MB, free: 42.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.011e-05/0.4425, allocations: 24 kB / 460.6 MB, free: 42.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.4425, allocations: 8 kB / 460.6 MB, free: 42.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.4425, allocations: 7.969 kB / 460.6 MB, free: 42.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00932/0.4519, allocations: 6.325 MB / 466.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.4519, allocations: 0 / 466.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.4532, allocations: 287.6 kB / 467.2 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001416/0.4546, allocations: 0.6169 MB / 467.8 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/0.4547, allocations: 49.06 kB / 467.8 MB, free: 35.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009098/0.4638, allocations: 10.77 MB / 478.6 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.4639, allocations: 4.031 kB / 478.6 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006202/0.4701, allocations: 4.241 MB / 482.9 MB, free: 19.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/0.4714, allocations: 0.5369 MB / 483.4 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003528/0.4717, allocations: 41.56 kB / 483.4 MB, free: 19.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.4728, allocations: 95.94 kB / 483.5 MB, free: 18.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003219/0.4732, allocations: 137.8 kB / 483.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.4733, allocations: 59.88 kB / 483.7 MB, free: 18.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002056/0.4753, allocations: 1.795 MB / 485.5 MB, free: 16.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4753, allocations: 0 / 485.5 MB, free: 16.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002426/0.4778, allocations: 0.6864 MB / 486.2 MB, free: 16.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.phi,PI.x) * 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 (129): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/0.4788, allocations: 454.6 kB / 486.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004461/0.4833, allocations: 2.833 MB / 489.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.4833, allocations: 4.125 kB / 489.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002641/0.4859, allocations: 1.979 MB / 491.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/0.4884, allocations: 0.5286 MB / 492 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.4987, allocations: 8.358 MB / 0.4886 GB, free: 2.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001941/0.5007, allocations: 2.698 MB / 0.4913 GB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00192/0.5026, allocations: 0.5079 MB / 0.4918 GB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004591/0.5031, allocations: 163.4 kB / 0.4919 GB, free: 14.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5031, allocations: 0 / 0.4919 GB, free: 14.75 MB / 366.1 MB Notification: Performance of Templates: time 0.06043/0.5635, allocations: 33.64 MB / 0.5248 GB, free: 13.4 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches