Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009433/0.0009433, allocations: 104.7 kB / 17.01 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 197.5 kB / 17.91 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.7 MB / 246.4 MB, free: 9.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002391/0.0002392, allocations: 4 kB / 307.1 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09449, allocations: 51.53 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01349/0.108, allocations: 12.54 MB / 371.2 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1764/0.2845, allocations: 4.948 MB / 376.1 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002466/0.287, allocations: 77.47 kB / 376.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003213/0.2902, allocations: 0.7951 MB / 377 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004494/0.2947, allocations: 1.162 MB / 378.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002591/0.2973, allocations: 0.7281 MB / 378.9 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006812/0.3041, allocations: 4.392 MB / 383.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004366/0.3085, allocations: 2.308 MB / 385.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002949/0.3115, allocations: 1.399 MB / 387 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003734/0.3152, allocations: 1.85 MB / 388.8 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.3163, allocations: 221.4 kB / 389.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002661/0.319, allocations: 0.5448 MB / 389.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001534/0.3206, allocations: 0.9461 MB / 390.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001759/0.3223, allocations: 0.8143 MB / 391.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005359/0.3277, allocations: 5.99 MB / 397.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3277, allocations: 4 kB / 397.4 MB, free: 1.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3277, allocations: 1 kB / 397.4 MB, free: 1.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001622/0.3279, allocations: 0 / 397.4 MB, free: 1.641 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.009992/0.3379, allocations: 4.311 MB / 401.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.3379, allocations: 8.781 kB / 401.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004558/0.3425, allocations: 0.9208 MB / 402.6 MB, free: 14.42 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004508/0.347, allocations: 2.622 MB / 405.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.3472, allocations: 246.7 kB / 405.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004744/0.3477, allocations: 341.2 kB / 405.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007505/0.3552, allocations: 4.538 MB / 410.3 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.066e-05/0.3553, allocations: 4 kB / 410.3 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002975/0.3556, allocations: 136 kB / 410.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001458/0.3557, allocations: 158.6 kB / 410.6 MB, free: 6.855 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006539/0.3623, allocations: 3.915 MB / 414.5 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02013/0.3824, allocations: 14.24 MB / 428.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00683/0.3893, allocations: 6.999 MB / 435.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002659/0.392, allocations: 1.695 MB / 437.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00683/0.3988, allocations: 4.505 MB / 442 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.3988, allocations: 54.28 kB / 442 MB, free: 6.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.366e-06/0.3989, allocations: 0 / 442 MB, free: 6.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01613/0.415, allocations: 7.919 MB / 450 MB, free: 14.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.4151, allocations: 69.41 kB / 450 MB, free: 14.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003572/0.4186, allocations: 2.652 MB / 452.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.4188, allocations: 57.7 kB / 452.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/0.4199, allocations: 1.628 MB / 454.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005237/0.4204, allocations: 0.6252 MB / 455 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.4206, allocations: 36 kB / 455 MB, free: 9.215 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.4207, allocations: 381.8 kB / 455.4 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001545/0.4223, allocations: 0.9175 MB / 456.3 MB, free: 7.918 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.4241, allocations: 1.31 MB / 457.6 MB, free: 6.457 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001831/0.4259, allocations: 1.138 MB / 458.8 MB, free: 5.324 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.373e-06/0.426, allocations: 4 kB / 458.8 MB, free: 5.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005732/0.4317, allocations: 3.087 MB / 461.8 MB, free: 2.219 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.4317, allocations: 12 kB / 461.9 MB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.4318, allocations: 8 kB / 461.9 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.4332, allocations: 0.5636 MB / 462.4 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/0.435, allocations: 439.3 kB / 462.9 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008697/0.4437, allocations: 6.928 MB / 469.8 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.4458, allocations: 91.94 kB / 469.9 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/0.446, allocations: 80.05 kB / 470 MB, free: 9.852 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 (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.002331/0.4483, allocations: 1.169 MB / 471.1 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005663/0.4489, allocations: 260.8 kB / 471.4 MB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005329/0.4543, allocations: 2.902 MB / 474.3 MB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.037e-05/0.4543, allocations: 20 kB / 474.3 MB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.4543, allocations: 12 kB / 474.3 MB, free: 5.457 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.042e-05/0.4544, allocations: 11.97 kB / 474.3 MB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/0.4648, allocations: 6.361 MB / 480.7 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.4648, allocations: 4 kB / 480.7 MB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/0.4661, allocations: 287.7 kB / 481 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/0.4676, allocations: 0.6128 MB / 481.6 MB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.4677, allocations: 43.98 kB / 481.6 MB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01046/0.4782, allocations: 10.48 MB / 492.1 MB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.4782, allocations: 4.031 kB / 492.1 MB, free: 3.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006989/0.4852, allocations: 4.177 MB / 496.3 MB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.4866, allocations: 0.5485 MB / 496.8 MB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/0.4869, allocations: 40 kB / 496.9 MB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.4879, allocations: 87.94 kB / 497 MB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003214/0.4883, allocations: 144.3 kB / 497.1 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.4884, allocations: 55.92 kB / 497.2 MB, free: 13.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002582/0.491, allocations: 1.862 MB / 499 MB, free: 12.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.491, allocations: 4 kB / 499 MB, free: 12.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002298/0.4933, allocations: 0.6954 MB / 499.7 MB, free: 11.42 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 (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.001034/0.4943, allocations: 440.3 kB / 0.4884 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004585/0.4989, allocations: 2.85 MB / 0.4912 GB, free: 8.238 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4989, allocations: 0 / 0.4912 GB, free: 8.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002837/0.5018, allocations: 1.941 MB / 0.4931 GB, free: 6.246 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00245/0.5042, allocations: 0.5695 MB / 0.4937 GB, free: 5.684 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.5156, allocations: 8.428 MB / 0.5019 GB, free: 13.24 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002241/0.5179, allocations: 2.636 MB / 0.5045 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001769/0.5197, allocations: 0.5008 MB / 0.505 GB, free: 10.06 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004498/0.5201, allocations: 167.4 kB / 0.5051 GB, free: 9.898 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5201, allocations: 0 / 0.5051 GB, free: 9.898 MB / 430.1 MB Notification: Performance of Templates: time 0.2408/0.761, allocations: 34.74 MB / 0.539 GB, free: 134.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches