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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 85.08 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 173.1 kB / 26.39 MB, free: 8 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9467/0.9467, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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.[0-9,]+..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..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.[0-9,]+.|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=50000,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.[0-9,]+..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..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.[0-9,]+.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 252.3 MB, free: 7.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.001e-05/2.146e-05, allocations: 10.25 kB / 252.3 MB, free: 7.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01131/0.01133, allocations: 12.99 MB / 265.3 MB, free: 10.13 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00738/0.01871, allocations: 4.775 MB / 270.1 MB, free: 5.344 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.02052, allocations: 87.44 kB / 270.2 MB, free: 5.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.02279, allocations: 1.04 MB / 271.2 MB, free: 4.211 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003804/0.02659, allocations: 1.436 MB / 272.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001651/0.02824, allocations: 0.974 MB / 273.6 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003977/0.03222, allocations: 4.517 MB / 278.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002155/0.03438, allocations: 1.766 MB / 279.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003637/0.03801, allocations: 3.197 MB / 283.1 MB, free: 8.211 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.04016, allocations: 2.097 MB / 285.2 MB, free: 6.109 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005688/0.04073, allocations: 0.5273 MB / 285.7 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.04192, allocations: 0.8742 MB / 286.6 MB, free: 4.707 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001046/0.04297, allocations: 1.406 MB / 288 MB, free: 3.297 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001334/0.0443, allocations: 1.555 MB / 289.6 MB, free: 1.738 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0037/0.048, allocations: 3.882 MB / 293.4 MB, free: 13.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.04801, allocations: 11.94 kB / 293.4 MB, free: 13.83 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.04801, allocations: 0 / 293.4 MB, free: 13.83 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.983e-05/0.04808, allocations: 0 / 293.4 MB, free: 13.83 MB / 282.7 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.006629/0.05471, allocations: 5.103 MB / 298.6 MB, free: 8.656 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.05475, allocations: 15.98 kB / 298.6 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002687/0.05743, allocations: 1.239 MB / 299.8 MB, free: 7.398 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.06023, allocations: 2.298 MB / 302.1 MB, free: 5.031 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.06036, allocations: 247.1 kB / 302.3 MB, free: 4.789 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003383/0.0607, allocations: 340.3 kB / 302.7 MB, free: 4.457 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002944/0.06365, allocations: 2.498 MB / 305.2 MB, free: 1.867 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.502e-05/0.0637, allocations: 8 kB / 305.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002116/0.06391, allocations: 136 kB / 305.3 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.06402, allocations: 154.7 kB / 305.5 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.06556, allocations: 0.9863 MB / 306.5 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01232/0.07788, allocations: 11.13 MB / 317.6 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00265/0.08053, allocations: 2.033 MB / 319.6 MB, free: 3.254 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.08155, allocations: 0.8322 MB / 320.5 MB, free: 2.422 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003683/0.08523, allocations: 2.591 MB / 323 MB, free: 15.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.08527, allocations: 58.69 kB / 323.1 MB, free: 15.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=165): time 2.966e-06/0.08527, allocations: 0 / 323.1 MB, free: 15.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=185): time 0.007221/0.09249, allocations: 4.206 MB / 327.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.09253, allocations: 73.41 kB / 327.4 MB, free: 11.4 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.09409, allocations: 1.842 MB / 329.2 MB, free: 9.516 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.038e-05/0.09417, allocations: 53.7 kB / 329.3 MB, free: 9.457 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.09532, allocations: 1.814 MB / 331.1 MB, free: 7.621 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003931/0.09571, allocations: 0.6662 MB / 331.8 MB, free: 6.949 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003905/0.0961, allocations: 361 kB / 332.1 MB, free: 6.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.904e-05/0.0962, allocations: 484.8 kB / 332.6 MB, free: 6.113 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003668/0.09657, allocations: 239.8 kB / 332.8 MB, free: 5.879 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006208/0.09719, allocations: 0.8377 MB / 333.6 MB, free: 4.828 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.09829, allocations: 1.199 MB / 334.8 MB, free: 3.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.09829, allocations: 11.94 kB / 334.9 MB, free: 3.418 MB / 314.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.002158/0.1005, allocations: 1.67 MB / 336.5 MB, free: 1.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.1005, allocations: 12 kB / 336.5 MB, free: 1.719 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.1005, allocations: 11.98 kB / 336.6 MB, free: 1.707 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.1016, allocations: 478.5 kB / 337 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009035/0.1025, allocations: 411.4 kB / 337.4 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/0.1071, allocations: 6.165 MB / 343.6 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008832/0.108, allocations: 63.92 kB / 343.6 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.1081, allocations: 63.98 kB / 343.7 MB, free: 10.3 MB / 330.7 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.000735/0.1089, allocations: 268.2 kB / 344 MB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003603/0.1092, allocations: 306.3 kB / 344.3 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001991/0.1112, allocations: 1.54 MB / 345.8 MB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/0.1112, allocations: 20 kB / 345.8 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.1112, allocations: 8 kB / 345.8 MB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.1113, allocations: 11.95 kB / 345.9 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0045/0.1158, allocations: 3.551 MB / 349.4 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.1158, allocations: 0 / 349.4 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006376/0.1164, allocations: 255.8 kB / 349.7 MB, free: 4.246 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001014/0.1174, allocations: 0.5254 MB / 350.2 MB, free: 3.707 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.81e-05/0.1175, allocations: 48.03 kB / 350.2 MB, free: 3.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1184/0.2359, allocations: 10.36 MB / 360.6 MB, free: 73.88 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2359, allocations: 4.594 kB / 360.6 MB, free: 73.88 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002699/0.2386, allocations: 2.021 MB / 362.6 MB, free: 73.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005659/0.2392, allocations: 407 kB / 363 MB, free: 73.5 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.2394, allocations: 39.66 kB / 363 MB, free: 73.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005208/0.2399, allocations: 65.45 kB / 363.1 MB, free: 73.5 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/0.2401, allocations: 140.8 kB / 363.2 MB, free: 73.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.891e-05/0.2402, allocations: 43.02 kB / 363.3 MB, free: 73.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007843/0.241, allocations: 0.985 MB / 364.3 MB, free: 73.31 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.241, allocations: 2.719 kB / 364.3 MB, free: 73.31 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001596/0.2426, allocations: 0.6825 MB / 365 MB, free: 73.31 MB / 330.7 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.0008647/0.2435, allocations: 428.5 kB / 365.4 MB, free: 73.12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001952/0.2454, allocations: 1.739 MB / 367.1 MB, free: 72.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.217e-06/0.2454, allocations: 3.562 kB / 367.1 MB, free: 72.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.2466, allocations: 1.579 MB / 368.7 MB, free: 71.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.2479, allocations: 495.9 kB / 369.2 MB, free: 71.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006862/0.2547, allocations: 5.934 MB / 375.1 MB, free: 69.42 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007924/0.2555, allocations: 0.9474 MB / 376.1 MB, free: 69.28 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008383/0.2564, allocations: 291 kB / 376.4 MB, free: 69.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007901/0.2571, allocations: 0.5347 MB / 376.9 MB, free: 69.13 MB / 330.7 MB Notification: Performance of SimCode: time 1.283e-06/0.2571, allocations: 3.938 kB / 376.9 MB, free: 69.13 MB / 330.7 MB Notification: Performance of Templates: time 0.0505/0.3076, allocations: 36.27 MB / 413.2 MB, free: 36.27 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable aimc.stator.zeroInductor.i0 in file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.mat. Warning: Get data of variable aimc.stator.zeroInductor.i0 from file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.849694447591901]