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.001023/0.001023, allocations: 96.28 kB / 16.96 MB, free: 6.113 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.00115/0.00115, allocations: 177.8 kB / 17.84 MB, free: 5.727 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.792/1.792, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005035/0.0005035, allocations: 8 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1071, allocations: 47.59 MB / 328.4 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01445/0.1215, allocations: 11.93 MB / 340.3 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01154/0.1331, allocations: 4.528 MB / 344.8 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002939/0.1361, allocations: 67.69 kB / 344.9 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003428/0.1396, allocations: 0.773 MB / 345.7 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.1445, allocations: 1.142 MB / 346.8 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003847/0.1484, allocations: 0.6976 MB / 347.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007462/0.1559, allocations: 4.324 MB / 351.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004509/0.1604, allocations: 2.258 MB / 354.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002969/0.1634, allocations: 1.397 MB / 355.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003677/0.1671, allocations: 1.84 MB / 357.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001086/0.1682, allocations: 224 kB / 357.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002522/0.1707, allocations: 0.5347 MB / 358.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001599/0.1723, allocations: 0.9459 MB / 359 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001916/0.1743, allocations: 0.8043 MB / 359.8 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007222/0.1815, allocations: 5.945 MB / 365.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1815, allocations: 0 / 365.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1816, allocations: 0 / 365.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002026/0.1818, allocations: 0 / 365.8 MB, free: 14.5 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.01151/0.1933, allocations: 4.252 MB / 370 MB, free: 10.17 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.1934, allocations: 12.03 kB / 370 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00515/0.1985, allocations: 0.8809 MB / 370.9 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005658/0.2042, allocations: 2.468 MB / 373.4 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002073/0.2044, allocations: 254.7 kB / 373.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007494/0.2052, allocations: 343.7 kB / 374 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009464/0.2147, allocations: 4.535 MB / 378.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.662e-05/0.2148, allocations: 11.92 kB / 378.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003334/0.2151, allocations: 140 kB / 378.7 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001758/0.2153, allocations: 154.7 kB / 378.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.252/0.4673, allocations: 3.9 MB / 382.7 MB, free: 32.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0315/0.4988, allocations: 14.24 MB / 396.9 MB, free: 29.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006971/0.5058, allocations: 6.972 MB / 403.9 MB, free: 23.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002797/0.5087, allocations: 1.707 MB / 405.6 MB, free: 22.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007562/0.5163, allocations: 4.256 MB / 409.9 MB, free: 19.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.5163, allocations: 54.25 kB / 409.9 MB, free: 19.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.557e-06/0.5163, allocations: 0 / 409.9 MB, free: 19.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01687/0.5332, allocations: 7.942 MB / 417.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.5333, allocations: 78.7 kB / 418 MB, free: 13.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004062/0.5374, allocations: 2.608 MB / 420.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001735/0.5376, allocations: 66.42 kB / 420.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009671/0.5385, allocations: 1.615 MB / 422.2 MB, free: 8.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000518/0.5391, allocations: 0.6227 MB / 422.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.5392, allocations: 36 kB / 422.9 MB, free: 8.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.5393, allocations: 381.9 kB / 423.3 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/0.5408, allocations: 0.9097 MB / 424.2 MB, free: 6.941 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.5425, allocations: 1.315 MB / 425.5 MB, free: 5.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001692/0.5442, allocations: 1.135 MB / 426.6 MB, free: 4.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.5442, allocations: 6.188 kB / 426.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005108/0.5493, allocations: 3.074 MB / 429.7 MB, free: 1.352 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.5494, allocations: 8 kB / 429.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/0.5494, allocations: 12 kB / 429.7 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001454/0.5509, allocations: 0.5555 MB / 430.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.5526, allocations: 440.9 kB / 430.7 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.563, allocations: 6.95 MB / 437.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002119/0.5651, allocations: 93.19 kB / 437.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002783/0.5654, allocations: 80.05 kB / 437.8 MB, free: 9.012 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 (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,(7,75.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002557/0.568, allocations: 1.159 MB / 439 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006882/0.5687, allocations: 252.9 kB / 439.2 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005599/0.5743, allocations: 2.9 MB / 442.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.262e-05/0.5743, allocations: 20 kB / 442.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.283e-05/0.5744, allocations: 15.47 kB / 442.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.098e-05/0.5744, allocations: 14.14 kB / 442.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01261/0.587, allocations: 6.35 MB / 448.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/0.5871, allocations: 5.422 kB / 448.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001451/0.5885, allocations: 286.8 kB / 448.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001792/0.5903, allocations: 0.6124 MB / 449.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002267/0.5906, allocations: 47.98 kB / 449.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01373/0.6043, allocations: 10.48 MB / 460 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.6044, allocations: 0 / 460 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009866/0.6143, allocations: 4.178 MB / 464.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002468/0.6168, allocations: 0.5408 MB / 464.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009475/0.6178, allocations: 36 kB / 464.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001852/0.6197, allocations: 97.09 kB / 464.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004901/0.6202, allocations: 141.3 kB / 465 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001761/0.6204, allocations: 51.98 kB / 465 MB, free: 13.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005135/0.6255, allocations: 1.827 MB / 466.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.6256, allocations: 4 kB / 466.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004859/0.6304, allocations: 0.6926 MB / 467.5 MB, free: 10.83 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 (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.001703/0.6321, allocations: 446.3 kB / 468 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006478/0.6386, allocations: 2.838 MB / 470.8 MB, free: 7.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/0.6387, allocations: 4 kB / 470.8 MB, free: 7.609 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00371/0.6424, allocations: 1.948 MB / 472.8 MB, free: 5.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004527/0.6469, allocations: 0.5626 MB / 473.3 MB, free: 5.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/0.6631, allocations: 8.375 MB / 481.7 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002433/0.6656, allocations: 2.624 MB / 484.3 MB, free: 10.03 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00202/0.6676, allocations: 0.5005 MB / 484.8 MB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00047/0.6681, allocations: 169.1 kB / 485 MB, free: 9.363 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6681, allocations: 0 / 485 MB, free: 9.363 MB / 382.1 MB Notification: Performance of Templates: time 0.06045/0.7286, allocations: 34.35 MB / 0.5072 GB, free: 7.043 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