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.001369/0.001369, allocations: 105.8 kB / 17.59 MB, free: 5.445 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.001365/0.001365, allocations: 187.3 kB / 18.51 MB, free: 4.527 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.333/1.333, allocations: 222.9 MB / 242.2 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009814/0.0009814, allocations: 47.17 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08549/0.08649, allocations: 49.44 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0141/0.1006, allocations: 13.63 MB / 364.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008813/0.1095, allocations: 4.969 MB / 369.3 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002109/0.1116, allocations: 79.69 kB / 369.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003159/0.1148, allocations: 1.037 MB / 370.4 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.173/0.2879, allocations: 1.396 MB / 371.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002987/0.2909, allocations: 0.9726 MB / 372.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006364/0.2973, allocations: 4.272 MB / 377.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00455/0.3019, allocations: 3.355 MB / 380.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004052/0.306, allocations: 1.999 MB / 382.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004898/0.3109, allocations: 2.312 MB / 384.8 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00174/0.3127, allocations: 0.5355 MB / 385.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003279/0.316, allocations: 0.9241 MB / 386.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001449/0.3175, allocations: 1.332 MB / 387.5 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004703/0.3222, allocations: 2.355 MB / 389.9 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007821/0.33, allocations: 7.306 MB / 397.2 MB, free: 1.605 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3301, allocations: 1.938 kB / 397.2 MB, free: 1.605 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3301, allocations: 0 / 397.2 MB, free: 1.605 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002032/0.3303, allocations: 0 / 397.2 MB, free: 1.605 MB / 302.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.01352/0.3438, allocations: 4.976 MB / 402.2 MB, free: 14.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.3439, allocations: 8.031 kB / 402.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00466/0.3486, allocations: 0.8777 MB / 403.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005639/0.3542, allocations: 2.714 MB / 405.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/0.3545, allocations: 253.3 kB / 406 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008713/0.3553, allocations: 335.8 kB / 406.4 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009/0.3644, allocations: 4.549 MB / 410.9 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-05/0.3645, allocations: 3.984 kB / 410.9 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003308/0.3648, allocations: 135 kB / 411 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001725/0.365, allocations: 158.7 kB / 411.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00789/0.3729, allocations: 3.906 MB / 415.1 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02722/0.4002, allocations: 14.17 MB / 429.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00993/0.4101, allocations: 6.985 MB / 436.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003335/0.4135, allocations: 1.685 MB / 437.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008282/0.4219, allocations: 4.247 MB / 442.2 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/0.4219, allocations: 55.88 kB / 442.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 4.559e-06/0.422, allocations: 0 / 442.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01837/0.4403, allocations: 7.775 MB / 450 MB, free: 13.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.4404, allocations: 69.41 kB / 450.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004234/0.4447, allocations: 2.62 MB / 452.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00033/0.445, allocations: 57.7 kB / 452.8 MB, free: 10.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001299/0.4463, allocations: 1.618 MB / 454.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007043/0.4471, allocations: 0.6233 MB / 455 MB, free: 8.254 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005784/0.4476, allocations: 339 kB / 455.3 MB, free: 7.918 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.4478, allocations: 309.1 kB / 455.6 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/0.4494, allocations: 0.9058 MB / 456.5 MB, free: 6.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001889/0.4513, allocations: 1.314 MB / 457.9 MB, free: 5.242 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003624/0.455, allocations: 2.343 MB / 460.2 MB, free: 2.758 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.455, allocations: 4 kB / 460.2 MB, free: 2.754 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005817/0.4608, allocations: 3.065 MB / 463.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.406e-05/0.4609, allocations: 12 kB / 463.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.4609, allocations: 8 kB / 463.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001575/0.4625, allocations: 0.5558 MB / 463.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001872/0.4644, allocations: 435.3 kB / 464.3 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00949/0.4739, allocations: 7.6 MB / 471.9 MB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/0.476, allocations: 91.84 kB / 472 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/0.4762, allocations: 79.97 kB / 472 MB, free: 6.637 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002394/0.4786, allocations: 1.157 MB / 473.2 MB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006559/0.4793, allocations: 260.8 kB / 473.4 MB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005658/0.485, allocations: 2.882 MB / 476.3 MB, free: 2.305 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.441e-05/0.485, allocations: 23.92 kB / 476.4 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/0.4851, allocations: 12 kB / 476.4 MB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.019e-05/0.4851, allocations: 7.969 kB / 476.4 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.497, allocations: 6.341 MB / 482.7 MB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.4971, allocations: 0 / 482.7 MB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/0.4985, allocations: 279.7 kB / 483 MB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001775/0.5003, allocations: 0.6129 MB / 483.6 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002232/0.5005, allocations: 47.98 kB / 483.6 MB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/0.5127, allocations: 11.47 MB / 495.1 MB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5127, allocations: 0 / 495.1 MB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007703/0.5205, allocations: 4.149 MB / 499.3 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001456/0.522, allocations: 0.5369 MB / 499.8 MB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005405/0.5225, allocations: 40 kB / 499.8 MB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/0.5239, allocations: 87.88 kB / 499.9 MB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003845/0.5243, allocations: 137.7 kB / 0.4883 GB, free: 9.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.5244, allocations: 51.98 kB / 0.4884 GB, free: 9.859 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002934/0.5274, allocations: 1.846 MB / 0.4902 GB, free: 8 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5274, allocations: 0 / 0.4902 GB, free: 8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003194/0.5306, allocations: 0.6913 MB / 0.4909 GB, free: 7.312 MB / 414.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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001286/0.5319, allocations: 452.5 kB / 0.4913 GB, free: 7.008 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008176/0.5401, allocations: 3.436 MB / 0.4947 GB, free: 3.551 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.5402, allocations: 0 / 0.4947 GB, free: 3.551 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003315/0.5435, allocations: 1.939 MB / 0.4965 GB, free: 1.562 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003246/0.5468, allocations: 0.5831 MB / 0.4971 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/0.5604, allocations: 7.147 MB / 0.5041 GB, free: 9.812 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002447/0.5629, allocations: 2.574 MB / 0.5066 GB, free: 7.211 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008675/0.5638, allocations: 183.4 kB / 0.5068 GB, free: 7.031 MB / 430.1 MB Notification: Performance of SimCode: time 1.363e-06/0.5638, allocations: 3.938 kB / 0.5068 GB, free: 7.027 MB / 430.1 MB Notification: Performance of Templates: time 0.2565/0.8204, allocations: 100.2 MB / 0.6047 GB, free: 87.63 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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