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.001066/0.001066, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.001305/0.001305, allocations: 190 kB / 18.07 MB, free: 5.414 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.374/1.374, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001932/0.001932, allocations: 51.92 kB / 280 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.129, allocations: 46.62 MB / 326.6 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.02145/0.1505, allocations: 13.42 MB / 340 MB, free: 7.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.1632, allocations: 4.818 MB / 344.8 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002991/0.1663, allocations: 63.75 kB / 344.9 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003867/0.1702, allocations: 0.9018 MB / 345.8 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005259/0.1755, allocations: 1.267 MB / 347.1 MB, free: 316 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003156/0.1786, allocations: 0.9006 MB / 348 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007561/0.1862, allocations: 4.64 MB / 352.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004839/0.1911, allocations: 2.726 MB / 355.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002808/0.1939, allocations: 1.595 MB / 356.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00342/0.1973, allocations: 2.156 MB / 359.1 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007092/0.1981, allocations: 316 kB / 359.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.2001, allocations: 0.6829 MB / 360.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.2013, allocations: 1.09 MB / 361.2 MB, free: 2.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002753/0.2041, allocations: 2.091 MB / 363.3 MB, free: 0 / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008479/0.2126, allocations: 7.096 MB / 370.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/0.2126, allocations: 11.98 kB / 370.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2126, allocations: 3.938 kB / 370.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.778e-05/0.2127, allocations: 0 / 370.4 MB, free: 8.867 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.01282/0.2256, allocations: 4.965 MB / 375.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.2256, allocations: 8.031 kB / 375.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00427/0.2299, allocations: 0.8858 MB / 376.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003793/0.2337, allocations: 2.549 MB / 378.8 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.2339, allocations: 262.5 kB / 379 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1468/0.3807, allocations: 334.7 kB / 379.4 MB, free: 50.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008281/0.3891, allocations: 4.545 MB / 383.9 MB, free: 48.47 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.151e-05/0.3892, allocations: 4.719 kB / 383.9 MB, free: 48.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002922/0.3895, allocations: 136.8 kB / 384.1 MB, free: 48.37 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000166/0.3896, allocations: 151.2 kB / 384.2 MB, free: 48.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007969/0.3976, allocations: 3.91 MB / 388.1 MB, free: 46.85 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02407/0.4217, allocations: 14.18 MB / 402.3 MB, free: 37.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005974/0.4277, allocations: 6.974 MB / 409.3 MB, free: 31.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002569/0.4303, allocations: 1.682 MB / 410.9 MB, free: 29.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005744/0.4361, allocations: 4.26 MB / 415.2 MB, free: 25.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.4361, allocations: 47.88 kB / 415.3 MB, free: 25.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.647e-06/0.4362, allocations: 0 / 415.3 MB, free: 25.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01402/0.4502, allocations: 7.823 MB / 423.1 MB, free: 17.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.4502, allocations: 73.41 kB / 423.1 MB, free: 17.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.4529, allocations: 2.631 MB / 425.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001119/0.453, allocations: 57.7 kB / 425.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007106/0.4537, allocations: 1.607 MB / 427.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003338/0.4541, allocations: 0.6222 MB / 428.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004455/0.4545, allocations: 339.2 kB / 428.4 MB, free: 12.08 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.079e-05/0.4546, allocations: 309 kB / 428.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.4559, allocations: 0.9097 MB / 429.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.4573, allocations: 1.298 MB / 430.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002867/0.4602, allocations: 2.355 MB / 433.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.4602, allocations: 4 kB / 433.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004693/0.4649, allocations: 3.073 MB / 436.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.465, allocations: 12 kB / 436.4 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.465, allocations: 11.39 kB / 436.4 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/0.4664, allocations: 0.5558 MB / 436.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.468, allocations: 435.3 kB / 437.3 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008541/0.4766, allocations: 6.942 MB / 444.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/0.4789, allocations: 83.94 kB / 444.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002043/0.4791, allocations: 75.98 kB / 444.4 MB, free: 11.45 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.002166/0.4813, allocations: 1.165 MB / 445.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005346/0.4819, allocations: 248.9 kB / 445.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005526/0.4874, allocations: 2.889 MB / 448.7 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.941e-05/0.4874, allocations: 25.2 kB / 448.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.4875, allocations: 12 kB / 448.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-05/0.4875, allocations: 11.91 kB / 448.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.4978, allocations: 6.335 MB / 455.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.4979, allocations: 4.062 kB / 455.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/0.4992, allocations: 275.7 kB / 455.4 MB, free: 424 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001652/0.5008, allocations: 0.6253 MB / 456 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001278/0.501, allocations: 47.98 kB / 456.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.5119, allocations: 10.48 MB / 466.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.209e-06/0.512, allocations: 4.031 kB / 466.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007116/0.5191, allocations: 4.151 MB / 470.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.5202, allocations: 0.5369 MB / 471.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003403/0.5206, allocations: 40 kB / 471.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.5217, allocations: 91.62 kB / 471.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003671/0.5221, allocations: 141.7 kB / 471.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/0.5222, allocations: 47.98 kB / 471.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002492/0.5247, allocations: 1.85 MB / 473.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5247, allocations: 4 kB / 473.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002244/0.5269, allocations: 0.6892 MB / 474.1 MB, free: 13.13 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.001093/0.5281, allocations: 445.5 kB / 474.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004959/0.533, allocations: 2.831 MB / 477.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.533, allocations: 8.062 kB / 477.4 MB, free: 9.848 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003036/0.5361, allocations: 1.93 MB / 479.3 MB, free: 7.871 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002725/0.5388, allocations: 0.5543 MB / 479.9 MB, free: 7.312 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.5539, allocations: 8.635 MB / 488.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002424/0.5564, allocations: 2.628 MB / 491.1 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001952/0.5584, allocations: 0.4967 MB / 491.6 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004861/0.5589, allocations: 159.4 kB / 491.8 MB, free: 11.35 MB / 382.1 MB Notification: Performance of SimCode: time 2.174e-06/0.5589, allocations: 0 / 491.8 MB, free: 11.35 MB / 382.1 MB Notification: Performance of Templates: time 0.0592/0.6181, allocations: 35.78 MB / 0.5152 GB, free: 7.5 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