Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AIMC_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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 111.9 kB / 17.28 MB, free: 6.219 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.001017/0.001017, allocations: 193.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 51.92 kB / 280.2 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08671/0.08793, allocations: 46.63 MB / 326.8 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01381/0.1018, allocations: 13.42 MB / 340.2 MB, free: 7.301 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009799/0.1116, allocations: 4.795 MB / 345 MB, free: 2.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002545/0.1143, allocations: 67.69 kB / 345.1 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002517/0.1168, allocations: 0.9018 MB / 346 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00349/0.1203, allocations: 1.259 MB / 347.2 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002061/0.1224, allocations: 0.8812 MB / 348.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005552/0.1279, allocations: 4.484 MB / 352.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003707/0.1317, allocations: 3.292 MB / 355.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002647/0.1343, allocations: 1.892 MB / 357.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00274/0.1371, allocations: 2.308 MB / 360.1 MB, free: 3.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006734/0.1378, allocations: 0.5312 MB / 360.6 MB, free: 2.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00153/0.1393, allocations: 0.9096 MB / 361.5 MB, free: 1.848 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000962/0.1403, allocations: 1.317 MB / 362.8 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002251/0.1425, allocations: 2.345 MB / 365.2 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006416/0.149, allocations: 7.259 MB / 372.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.149, allocations: 0 / 372.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.149, allocations: 0 / 372.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001681/0.1492, allocations: 0 / 372.5 MB, free: 6.891 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.01125/0.1604, allocations: 4.965 MB / 377.4 MB, free: 1.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1605, allocations: 12.03 kB / 377.4 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004264/0.1648, allocations: 0.8741 MB / 378.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1513/0.3161, allocations: 2.56 MB / 380.9 MB, free: 48.15 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000314/0.3165, allocations: 254 kB / 381.1 MB, free: 48.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001183/0.3177, allocations: 331.8 kB / 381.4 MB, free: 47.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01154/0.3292, allocations: 4.548 MB / 386 MB, free: 46.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00014/0.3294, allocations: 1.703 kB / 386 MB, free: 46.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007347/0.3301, allocations: 136 kB / 386.1 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002166/0.3304, allocations: 155.8 kB / 386.3 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008653/0.339, allocations: 3.907 MB / 390.2 MB, free: 44.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02218/0.3613, allocations: 14.19 MB / 404.4 MB, free: 34.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006261/0.3676, allocations: 6.967 MB / 411.3 MB, free: 28.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/0.37, allocations: 1.689 MB / 413 MB, free: 26.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00686/0.3769, allocations: 4.253 MB / 417.3 MB, free: 22.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/0.377, allocations: 51.88 kB / 417.3 MB, free: 22.1 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.466e-06/0.377, allocations: 0 / 417.3 MB, free: 22.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01531/0.3923, allocations: 7.831 MB / 425.2 MB, free: 14.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.3924, allocations: 76.25 kB / 425.2 MB, free: 14.06 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003037/0.3954, allocations: 2.624 MB / 427.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001417/0.3956, allocations: 53.7 kB / 427.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000704/0.3963, allocations: 1.618 MB / 429.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003297/0.3966, allocations: 0.623 MB / 430.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004641/0.3971, allocations: 331.2 kB / 430.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.544e-05/0.3971, allocations: 301.1 kB / 430.8 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.3984, allocations: 0.9136 MB / 431.7 MB, free: 7.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/0.3998, allocations: 1.305 MB / 433 MB, free: 6.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002694/0.4025, allocations: 2.355 MB / 435.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.4025, allocations: 11.84 kB / 435.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004543/0.4071, allocations: 3.065 MB / 438.4 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.4071, allocations: 12 kB / 438.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.4071, allocations: 8 kB / 438.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.4084, allocations: 0.5675 MB / 439 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.4102, allocations: 439.3 kB / 439.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008779/0.419, allocations: 7.566 MB / 447 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.4206, allocations: 91.88 kB / 447.1 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001596/0.4208, allocations: 80.05 kB / 447.2 MB, free: 7.496 MB / 334.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%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001768/0.4226, allocations: 1.161 MB / 448.3 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004622/0.423, allocations: 252.9 kB / 448.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005034/0.4281, allocations: 2.885 MB / 451.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.799e-05/0.4281, allocations: 20 kB / 451.5 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.4281, allocations: 8 kB / 451.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.636e-05/0.4281, allocations: 11.97 kB / 451.5 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009647/0.4378, allocations: 6.346 MB / 457.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.4378, allocations: 4 kB / 457.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001362/0.4392, allocations: 279.7 kB / 458.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00165/0.4409, allocations: 0.6109 MB / 458.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001502/0.441, allocations: 51.97 kB / 458.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01155/0.4526, allocations: 11.46 MB / 470.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4526, allocations: 0 / 470.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006717/0.4593, allocations: 4.156 MB / 474.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/0.4605, allocations: 0.5408 MB / 474.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003131/0.4608, allocations: 36 kB / 475 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.4619, allocations: 83.92 kB / 475.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/0.4623, allocations: 141.7 kB / 475.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.4624, allocations: 51.98 kB / 475.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00233/0.4647, allocations: 1.846 MB / 477.1 MB, free: 8.875 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4647, allocations: 0 / 477.1 MB, free: 8.875 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002151/0.4669, allocations: 0.69 MB / 477.8 MB, free: 8.188 MB / 366.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.strayReluctance.Phi.re,aimc.stator.strayReluctance.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.00104/0.4679, allocations: 445.5 kB / 478.2 MB, free: 7.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007333/0.4753, allocations: 3.456 MB / 481.7 MB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.4753, allocations: 1.938 kB / 481.7 MB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003024/0.4783, allocations: 1.934 MB / 483.6 MB, free: 2.324 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002788/0.4812, allocations: 0.5765 MB / 484.2 MB, free: 1.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01209/0.4933, allocations: 8.634 MB / 492.8 MB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002249/0.4955, allocations: 2.628 MB / 495.4 MB, free: 6.434 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001905/0.4974, allocations: 0.5006 MB / 495.9 MB, free: 5.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004872/0.498, allocations: 167.4 kB / 496.1 MB, free: 5.766 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.498, allocations: 0 / 496.1 MB, free: 5.766 MB / 382.1 MB Notification: Performance of Templates: time 0.06361/0.5616, allocations: 37.09 MB / 0.5207 GB, free: 0.5977 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_withLosses/AIMC_withLosses.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches