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.001882/0.001881, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001666/0.001666, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 51.92 kB / 352 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2416, allocations: 49.43 MB / 401.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0154/0.257, allocations: 13.62 MB / 415.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009615/0.2667, allocations: 4.953 MB / 420 MB, free: 6.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002413/0.2691, allocations: 79.69 kB / 420.1 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003712/0.2729, allocations: 1.033 MB / 421.1 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005166/0.2781, allocations: 1.414 MB / 422.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002944/0.2811, allocations: 0.9634 MB / 423.5 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00575/0.2869, allocations: 4.307 MB / 427.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004787/0.2917, allocations: 3.355 MB / 431.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00319/0.2949, allocations: 2.017 MB / 433.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00402/0.299, allocations: 2.269 MB / 435.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001444/0.3004, allocations: 0.5352 MB / 436 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002733/0.3032, allocations: 0.9213 MB / 436.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001884/0.3051, allocations: 1.371 MB / 438.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004029/0.3091, allocations: 2.349 MB / 440.6 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008898/0.3181, allocations: 7.357 MB / 448 MB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.597e-06/0.3181, allocations: 0 / 448 MB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3181, allocations: 3.938 kB / 448 MB, free: 10.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001915/0.3183, allocations: 0 / 448 MB, free: 10.08 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.01366/0.332, allocations: 4.984 MB / 453 MB, free: 5.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.332, allocations: 11.97 kB / 453 MB, free: 5.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004555/0.3366, allocations: 0.8741 MB / 453.9 MB, free: 4.125 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005756/0.3424, allocations: 2.767 MB / 456.6 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/0.3427, allocations: 250.6 kB / 456.9 MB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009741/0.3437, allocations: 339.8 kB / 457.2 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009848/0.3535, allocations: 4.547 MB / 461.8 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.263e-05/0.3536, allocations: 3.938 kB / 461.8 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003684/0.354, allocations: 136 kB / 461.9 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001702/0.3542, allocations: 158.7 kB / 462.1 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007932/0.3621, allocations: 3.911 MB / 466 MB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02381/0.386, allocations: 14 MB / 480 MB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007559/0.3936, allocations: 6.978 MB / 486.9 MB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002971/0.3966, allocations: 1.72 MB / 488.7 MB, free: 100 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007207/0.4039, allocations: 4.241 MB / 492.9 MB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.4039, allocations: 47.88 kB / 493 MB, free: 11.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 3.587e-06/0.4039, allocations: 0 / 493 MB, free: 11.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01696/0.4209, allocations: 7.777 MB / 0.489 GB, free: 3.801 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.421, allocations: 73.41 kB / 0.4891 GB, free: 3.715 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003978/0.425, allocations: 2.62 MB / 0.4916 GB, free: 1.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002232/0.4252, allocations: 57.7 kB / 0.4917 GB, free: 1.008 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001138/0.4264, allocations: 1.615 MB / 0.4933 GB, free: 15.37 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000603/0.427, allocations: 0.6237 MB / 0.4939 GB, free: 14.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006104/0.4276, allocations: 339.3 kB / 0.4942 GB, free: 14.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.146e-05/0.4277, allocations: 309 kB / 0.4945 GB, free: 14.1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/0.4293, allocations: 0.9058 MB / 0.4954 GB, free: 13.19 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/0.4312, allocations: 1.302 MB / 0.4966 GB, free: 11.73 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003556/0.4348, allocations: 2.348 MB / 0.4989 GB, free: 9.242 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-05/0.4348, allocations: 8 kB / 0.4989 GB, free: 9.234 MB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005634/0.4404, allocations: 3.073 MB / 0.5019 GB, free: 6.145 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.4405, allocations: 8 kB / 0.5019 GB, free: 6.137 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/0.4405, allocations: 12 kB / 0.502 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/0.4421, allocations: 0.5557 MB / 0.5025 GB, free: 5.562 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001804/0.4439, allocations: 423.4 kB / 0.5029 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009603/0.4535, allocations: 7.603 MB / 0.5103 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.4553, allocations: 87.94 kB / 0.5104 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002874/0.4556, allocations: 75.98 kB / 0.5105 GB, free: 13.11 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.002036/0.4576, allocations: 1.165 MB / 0.5116 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006324/0.4583, allocations: 256.8 kB / 0.5119 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005568/0.4638, allocations: 2.889 MB / 0.5147 GB, free: 8.762 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.314e-05/0.4639, allocations: 16 kB / 0.5147 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-05/0.4639, allocations: 12 kB / 0.5147 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.464, allocations: 7.969 kB / 0.5147 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.4751, allocations: 6.325 MB / 0.5209 GB, free: 2.309 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.4752, allocations: 4 kB / 0.5209 GB, free: 2.305 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.4765, allocations: 279.7 kB / 0.5212 GB, free: 2.031 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001669/0.4782, allocations: 0.6297 MB / 0.5218 GB, free: 1.391 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/0.4784, allocations: 43.98 kB / 0.5218 GB, free: 1.348 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/0.4902, allocations: 11.44 MB / 0.533 GB, free: 5.359 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.4903, allocations: 11.95 kB / 0.533 GB, free: 5.348 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007525/0.4978, allocations: 4.148 MB / 0.5371 GB, free: 1.152 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/0.499, allocations: 0.5408 MB / 0.5376 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005284/0.4995, allocations: 39.94 kB / 0.5376 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/0.501, allocations: 83.86 kB / 0.5377 GB, free: 480 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000372/0.5014, allocations: 145.7 kB / 0.5378 GB, free: 336 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/0.5015, allocations: 55.97 kB / 0.5379 GB, free: 280 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.2054/0.707, allocations: 1.835 MB / 0.5397 GB, free: 128.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.707, allocations: 0 / 0.5397 GB, free: 128.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002803/0.7098, allocations: 0.6935 MB / 0.5404 GB, free: 128.8 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.001104/0.7109, allocations: 437.9 kB / 0.5408 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004557/0.7155, allocations: 2.834 MB / 0.5436 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.7155, allocations: 3.938 kB / 0.5436 GB, free: 128.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002639/0.7182, allocations: 1.939 MB / 0.5454 GB, free: 127.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00276/0.721, allocations: 0.5873 MB / 0.546 GB, free: 126.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009999/0.731, allocations: 7.04 MB / 0.5529 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001791/0.7328, allocations: 2.565 MB / 0.5554 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007306/0.7336, allocations: 186.6 kB / 0.5556 GB, free: 122.3 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/0.7336, allocations: 2.844 kB / 0.5556 GB, free: 122.3 MB / 462.1 MB Notification: Performance of Templates: time 0.07768/0.8113, allocations: 100.6 MB / 0.6538 GB, free: 22.91 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/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