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.001247/0.001247, allocations: 108.6 kB / 17.06 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.0009747/0.0009747, allocations: 200.1 kB / 18 MB, free: 5.172 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 47.92 kB / 351.3 MB, free: 3.18 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2585, allocations: 49.43 MB / 400.8 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01606/0.2746, allocations: 13.62 MB / 414.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.285, allocations: 4.957 MB / 419.4 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002399/0.2874, allocations: 79.69 kB / 419.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003256/0.2907, allocations: 1.068 MB / 420.5 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004285/0.2951, allocations: 1.457 MB / 422 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002576/0.2977, allocations: 0.9678 MB / 422.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005394/0.3031, allocations: 4.312 MB / 427.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004958/0.3081, allocations: 3.344 MB / 430.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003472/0.3116, allocations: 2.013 MB / 432.6 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004146/0.3157, allocations: 2.273 MB / 434.9 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001409/0.3172, allocations: 0.5391 MB / 435.4 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002477/0.3197, allocations: 0.9213 MB / 436.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001775/0.3214, allocations: 1.363 MB / 437.7 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004199/0.3257, allocations: 2.349 MB / 440 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009083/0.3348, allocations: 7.361 MB / 447.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3348, allocations: 0 / 447.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.407e-06/0.3348, allocations: 0 / 447.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002505/0.3351, allocations: 3.938 kB / 447.4 MB, free: 10.14 MB / 366.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.01536/0.3504, allocations: 4.984 MB / 452.4 MB, free: 5.078 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.3505, allocations: 8.031 kB / 452.4 MB, free: 5.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005851/0.3564, allocations: 0.8779 MB / 453.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006123/0.3625, allocations: 2.771 MB / 456 MB, free: 1.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002715/0.3628, allocations: 250.6 kB / 456.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/0.3639, allocations: 339.8 kB / 456.6 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/0.3744, allocations: 4.547 MB / 461.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.605e-05/0.3745, allocations: 0 / 461.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003485/0.3749, allocations: 144 kB / 461.3 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000181/0.3751, allocations: 150.7 kB / 461.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007886/0.383, allocations: 3.919 MB / 465.4 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02194/0.4049, allocations: 14 MB / 479.4 MB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007621/0.4126, allocations: 6.974 MB / 486.3 MB, free: 1.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003439/0.4161, allocations: 1.724 MB / 488.1 MB, free: 160 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008416/0.4245, allocations: 4.245 MB / 492.3 MB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.4246, allocations: 47.88 kB / 492.4 MB, free: 11.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 4.148e-06/0.4246, allocations: 0 / 492.4 MB, free: 11.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01817/0.4428, allocations: 7.773 MB / 0.4884 GB, free: 3.859 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.4429, allocations: 73.41 kB / 0.4885 GB, free: 3.773 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004716/0.4477, allocations: 2.62 MB / 0.491 GB, free: 1.129 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002574/0.4479, allocations: 57.7 kB / 0.4911 GB, free: 1.066 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.4492, allocations: 1.623 MB / 0.4927 GB, free: 15.42 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006382/0.4499, allocations: 0.6237 MB / 0.4933 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006725/0.4505, allocations: 335.3 kB / 0.4936 GB, free: 14.46 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.081e-05/0.4506, allocations: 305.1 kB / 0.4939 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.4523, allocations: 0.9019 MB / 0.4948 GB, free: 13.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/0.4542, allocations: 1.31 MB / 0.4961 GB, free: 11.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003571/0.4577, allocations: 2.359 MB / 0.4984 GB, free: 9.285 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.236e-05/0.4578, allocations: 4 kB / 0.4984 GB, free: 9.281 MB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005858/0.4636, allocations: 3.057 MB / 0.5014 GB, free: 6.207 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.4637, allocations: 14.44 kB / 0.5014 GB, free: 6.195 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/0.4637, allocations: 15.94 kB / 0.5014 GB, free: 6.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001527/0.4653, allocations: 0.5517 MB / 0.5019 GB, free: 5.621 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.467, allocations: 431.3 kB / 0.5023 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009613/0.4766, allocations: 7.595 MB / 0.5098 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002001/0.4787, allocations: 84.02 kB / 0.5098 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004001/0.4791, allocations: 83.97 kB / 0.5099 GB, free: 13.16 MB / 446.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.002385/0.4815, allocations: 1.169 MB / 0.5111 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007861/0.4823, allocations: 256.8 kB / 0.5113 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005957/0.4883, allocations: 2.874 MB / 0.5141 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.573e-05/0.4883, allocations: 23.98 kB / 0.5141 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.17e-05/0.4884, allocations: 8 kB / 0.5141 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/0.4884, allocations: 11.97 kB / 0.5141 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/0.5002, allocations: 6.333 MB / 0.5203 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.5002, allocations: 0 / 0.5203 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/0.5016, allocations: 283.7 kB / 0.5206 GB, free: 2.082 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001696/0.5033, allocations: 0.6161 MB / 0.5212 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001975/0.5035, allocations: 43.98 kB / 0.5212 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/0.5158, allocations: 11.45 MB / 0.5324 GB, free: 5.406 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.5159, allocations: 4.031 kB / 0.5324 GB, free: 5.402 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007482/0.5233, allocations: 4.144 MB / 0.5365 GB, free: 1.211 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/0.5246, allocations: 0.5408 MB / 0.537 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004916/0.5251, allocations: 39.94 kB / 0.537 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/0.5264, allocations: 83.94 kB / 0.5371 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003588/0.5268, allocations: 145.7 kB / 0.5373 GB, free: 396 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.5269, allocations: 56.05 kB / 0.5373 GB, free: 340 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.1983/0.7253, allocations: 1.837 MB / 0.5391 GB, free: 129 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.42e-07/0.7253, allocations: 0 / 0.5391 GB, free: 129 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002763/0.7281, allocations: 0.694 MB / 0.5398 GB, free: 129 MB / 462.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.0009845/0.7291, allocations: 437.1 kB / 0.5402 GB, free: 128.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00428/0.7334, allocations: 2.828 MB / 0.543 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.7334, allocations: 6.969 kB / 0.543 GB, free: 128.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002448/0.7358, allocations: 1.939 MB / 0.5449 GB, free: 127.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/0.7382, allocations: 0.5843 MB / 0.5454 GB, free: 127.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009362/0.7476, allocations: 7.039 MB / 0.5523 GB, free: 124 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001735/0.7494, allocations: 2.628 MB / 0.5549 GB, free: 122.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001378/0.7507, allocations: 0.4973 MB / 0.5554 GB, free: 122.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004295/0.7512, allocations: 167.3 kB / 0.5555 GB, free: 122.1 MB / 462.1 MB Notification: Performance of SimCode: time 5e-07/0.7512, allocations: 2.734 kB / 0.5555 GB, free: 122.1 MB / 462.1 MB Notification: Performance of Templates: time 0.05095/0.8021, allocations: 35.71 MB / 0.5904 GB, free: 87.74 MB / 462.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","/var/lib/jenkins/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