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.0009953/0.0009954, allocations: 86 kB / 16.31 MB, free: 6.449 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.001124/0.001124, allocations: 180.6 kB / 17.21 MB, free: 6.32 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.465/1.465, allocations: 223.3 MB / 241.2 MB, free: 5.242 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002507/0.0002508, allocations: 9.469 kB / 300.8 MB, free: 5.504 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09825/0.09852, allocations: 50.42 MB / 351.3 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01286/0.1114, allocations: 11.98 MB / 363.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008751/0.1202, allocations: 4.609 MB / 367.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002353/0.1226, allocations: 75.69 kB / 367.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002784/0.1254, allocations: 0.7808 MB / 368.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003653/0.1291, allocations: 1.162 MB / 369.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002139/0.1312, allocations: 0.6809 MB / 370.5 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005413/0.1366, allocations: 4.289 MB / 374.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003625/0.1403, allocations: 2.314 MB / 377.1 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002137/0.1424, allocations: 1.389 MB / 378.5 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002282/0.1447, allocations: 1.84 MB / 380.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003708/0.1451, allocations: 220 kB / 380.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.1463, allocations: 0.5464 MB / 381.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007727/0.1471, allocations: 0.9459 MB / 382.1 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008041/0.1479, allocations: 0.8043 MB / 382.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005083/0.153, allocations: 5.957 MB / 388.8 MB, free: 5.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.153, allocations: 0 / 388.8 MB, free: 5.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.153, allocations: 0 / 388.8 MB, free: 5.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001378/0.1532, allocations: 4 kB / 388.9 MB, free: 5.609 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.009537/0.1627, allocations: 4.264 MB / 393.1 MB, free: 1.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1627, allocations: 12.03 kB / 393.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004575/0.1673, allocations: 0.8809 MB / 394 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005365/0.1727, allocations: 2.592 MB / 396.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002214/0.173, allocations: 254.6 kB / 396.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005999/0.1736, allocations: 331.9 kB / 397.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008053/0.1816, allocations: 4.535 MB / 401.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-05/0.1817, allocations: 0 / 401.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003052/0.182, allocations: 140 kB / 401.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001552/0.1822, allocations: 150.7 kB / 402 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007131/0.1894, allocations: 3.922 MB / 405.9 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02117/0.2105, allocations: 14.24 MB / 420.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1827/0.3932, allocations: 6.973 MB / 427.1 MB, free: 57.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003243/0.3965, allocations: 1.693 MB / 428.8 MB, free: 57.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007571/0.4041, allocations: 4.255 MB / 433.1 MB, free: 56.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.4042, allocations: 52.39 kB / 433.1 MB, free: 56.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 4.128e-06/0.4042, allocations: 4.75 kB / 433.1 MB, free: 56.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01703/0.4212, allocations: 7.915 MB / 441 MB, free: 54.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.4213, allocations: 74.59 kB / 441.1 MB, free: 54.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003714/0.425, allocations: 2.609 MB / 443.7 MB, free: 53.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001386/0.4252, allocations: 57.58 kB / 443.8 MB, free: 53.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008613/0.426, allocations: 1.622 MB / 445.4 MB, free: 52.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000385/0.4264, allocations: 0.6167 MB / 446 MB, free: 52.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.4266, allocations: 41.08 kB / 446.1 MB, free: 52.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.123e-05/0.4267, allocations: 380.2 kB / 446.4 MB, free: 51.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.428, allocations: 0.9111 MB / 447.3 MB, free: 51.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.4295, allocations: 1.313 MB / 448.7 MB, free: 50.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.431, allocations: 1.133 MB / 449.8 MB, free: 50.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.431, allocations: 3.875 kB / 449.8 MB, free: 50.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004594/0.4356, allocations: 3.079 MB / 452.9 MB, free: 48.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.4357, allocations: 12.11 kB / 452.9 MB, free: 48.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.4357, allocations: 12.53 kB / 452.9 MB, free: 48.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.437, allocations: 0.5571 MB / 453.5 MB, free: 48.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/0.4386, allocations: 435.9 kB / 453.9 MB, free: 48.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006802/0.4454, allocations: 6.954 MB / 460.8 MB, free: 41.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.447, allocations: 96 kB / 460.9 MB, free: 41.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002357/0.4472, allocations: 76.48 kB / 461 MB, free: 41.77 MB / 350.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 (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,(8,62.5%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001927/0.4492, allocations: 1.16 MB / 462.2 MB, free: 40.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005529/0.4497, allocations: 256.9 kB / 462.4 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004534/0.4543, allocations: 2.904 MB / 465.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.473e-05/0.4543, allocations: 20 kB / 465.3 MB, free: 37.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.94e-05/0.4543, allocations: 8 kB / 465.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.4543, allocations: 10.8 kB / 465.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008984/0.4633, allocations: 6.352 MB / 471.7 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.4634, allocations: 0 / 471.7 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/0.4646, allocations: 288.5 kB / 472 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.466, allocations: 0.6091 MB / 472.6 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/0.4662, allocations: 53.3 kB / 472.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008756/0.475, allocations: 10.48 MB / 483.1 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.475, allocations: 0 / 483.1 MB, free: 19.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006235/0.4812, allocations: 4.177 MB / 487.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.4825, allocations: 0.5408 MB / 487.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005417/0.4831, allocations: 36 kB / 487.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.4844, allocations: 98.42 kB / 488 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003214/0.4847, allocations: 141.8 kB / 488.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.4848, allocations: 55.97 kB / 488.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002489/0.4873, allocations: 1.823 MB / 490 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4874, allocations: 3.938 kB / 490 MB, free: 12.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002339/0.4897, allocations: 0.69 MB / 490.7 MB, free: 11.44 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 (126): * Single equations (assignments): 120 * 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%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001038/0.4907, allocations: 449.3 kB / 491.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004169/0.4949, allocations: 2.853 MB / 494 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.495, allocations: 0 / 494 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002494/0.4975, allocations: 1.938 MB / 495.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003002/0.5005, allocations: 0.5642 MB / 496.5 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.5115, allocations: 8.378 MB / 0.493 GB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002398/0.5139, allocations: 2.631 MB / 0.4956 GB, free: 10.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00206/0.516, allocations: 0.5006 MB / 0.4961 GB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005956/0.5166, allocations: 167.4 kB / 0.4963 GB, free: 10 MB / 366.1 MB Notification: Performance of SimCode: time 1.173e-06/0.5166, allocations: 0 / 0.4963 GB, free: 10 MB / 366.1 MB Notification: Performance of Templates: time 0.06393/0.5806, allocations: 34.38 MB / 0.5298 GB, free: 7.902 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","/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