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.001055/0.001055, allocations: 84.39 kB / 22.21 MB, free: 2.289 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.001265/0.001265, allocations: 163 kB / 25.6 MB, free: 8.895 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.9482/0.9482, allocations: 158.6 MB / 187.5 MB, free: 2.801 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.403e-06/1.403e-06, allocations: 0 / 251.5 MB, free: 7.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.375e-05, allocations: 2.312 kB / 251.5 MB, free: 7.211 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01688/0.0169, allocations: 13.01 MB / 264.5 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008121/0.02502, allocations: 4.775 MB / 269.3 MB, free: 5.348 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002124/0.02715, allocations: 91.44 kB / 269.4 MB, free: 5.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002669/0.02982, allocations: 1.032 MB / 270.4 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003983/0.0338, allocations: 1.432 MB / 271.8 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.03564, allocations: 0.9779 MB / 272.8 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004581/0.04022, allocations: 4.513 MB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002258/0.04248, allocations: 1.762 MB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004032/0.04651, allocations: 3.201 MB / 282.3 MB, free: 8.223 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002647/0.04916, allocations: 2.101 MB / 284.4 MB, free: 6.117 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001138/0.0503, allocations: 0.5273 MB / 284.9 MB, free: 5.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.05164, allocations: 0.8741 MB / 285.8 MB, free: 4.715 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008106/0.05245, allocations: 1.406 MB / 287.2 MB, free: 3.305 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002136/0.05459, allocations: 1.551 MB / 288.8 MB, free: 1.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003838/0.05843, allocations: 3.886 MB / 292.6 MB, free: 13.85 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.05843, allocations: 4 kB / 292.6 MB, free: 13.85 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.05843, allocations: 0 / 292.6 MB, free: 13.85 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.15e-05/0.05849, allocations: 0 / 292.6 MB, free: 13.85 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.006528/0.06502, allocations: 5.114 MB / 297.8 MB, free: 8.66 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.06507, allocations: 15.98 kB / 297.8 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002688/0.06776, allocations: 1.239 MB / 299 MB, free: 7.402 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002765/0.07052, allocations: 2.298 MB / 301.3 MB, free: 5.035 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.07068, allocations: 243.1 kB / 301.6 MB, free: 4.797 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003683/0.07105, allocations: 340.3 kB / 301.9 MB, free: 4.465 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003394/0.07444, allocations: 2.502 MB / 304.4 MB, free: 1.871 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.018e-05/0.07449, allocations: 0 / 304.4 MB, free: 1.871 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001975/0.07469, allocations: 140 kB / 304.5 MB, free: 1.734 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001062/0.0748, allocations: 150.7 kB / 304.7 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.07629, allocations: 0.9863 MB / 305.7 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01249/0.08878, allocations: 11.13 MB / 316.8 MB, free: 5.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002877/0.09166, allocations: 2.041 MB / 318.8 MB, free: 3.254 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.09267, allocations: 0.8205 MB / 319.7 MB, free: 2.434 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003739/0.09641, allocations: 2.614 MB / 322.3 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.383e-05/0.09646, allocations: 50.7 kB / 322.3 MB, free: 15.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=165): time 4.979e-06/0.09647, allocations: 0 / 322.3 MB, free: 15.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=185): time 0.007625/0.1041, allocations: 4.21 MB / 326.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.1041, allocations: 73.41 kB / 326.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.1058, allocations: 1.849 MB / 328.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.582e-05/0.1059, allocations: 57.7 kB / 328.5 MB, free: 9.438 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008916/0.1067, allocations: 1.803 MB / 330.3 MB, free: 7.613 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003724/0.1071, allocations: 0.67 MB / 331 MB, free: 6.938 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003963/0.1075, allocations: 365 kB / 331.3 MB, free: 6.574 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003708/0.1079, allocations: 480.7 kB / 331.8 MB, free: 6.102 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003448/0.1082, allocations: 247.8 kB / 332 MB, free: 5.859 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006433/0.1089, allocations: 0.826 MB / 332.9 MB, free: 4.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.1101, allocations: 1.211 MB / 334.1 MB, free: 3.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.1101, allocations: 11.94 kB / 334.1 MB, free: 3.398 MB / 314.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.002319/0.1124, allocations: 1.666 MB / 335.8 MB, free: 1.715 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.164e-05/0.1124, allocations: 11.98 kB / 335.8 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.1124, allocations: 12 kB / 335.8 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.1136, allocations: 482.5 kB / 336.3 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008958/0.1145, allocations: 403.4 kB / 336.6 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005043/0.1195, allocations: 6.171 MB / 342.8 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.1208, allocations: 63.98 kB / 342.9 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.1209, allocations: 63.97 kB / 342.9 MB, free: 10.29 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.0008454/0.1217, allocations: 268.1 kB / 343.2 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004119/0.1222, allocations: 302.4 kB / 343.5 MB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002103/0.1243, allocations: 1.548 MB / 345 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-05/0.1243, allocations: 23.98 kB / 345.1 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.1243, allocations: 12.06 kB / 345.1 MB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.1243, allocations: 7.969 kB / 345.1 MB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005172/0.1295, allocations: 3.547 MB / 348.6 MB, free: 4.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.1295, allocations: 7.984 kB / 348.6 MB, free: 4.469 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005931/0.1301, allocations: 247.8 kB / 348.9 MB, free: 4.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.1311, allocations: 0.5255 MB / 349.4 MB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.63e-05/0.1312, allocations: 39.98 kB / 349.5 MB, free: 3.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1257/0.2568, allocations: 10.38 MB / 359.8 MB, free: 73.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2568, allocations: 1.281 kB / 359.8 MB, free: 73.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002778/0.2596, allocations: 2.016 MB / 361.8 MB, free: 73.36 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005573/0.2602, allocations: 409.4 kB / 362.2 MB, free: 73.36 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.2604, allocations: 40.31 kB / 362.3 MB, free: 73.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005001/0.2609, allocations: 69.73 kB / 362.4 MB, free: 73.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002839/0.2611, allocations: 141.5 kB / 362.5 MB, free: 73.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-05/0.2612, allocations: 42.25 kB / 362.5 MB, free: 73.36 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008672/0.2621, allocations: 0.9841 MB / 363.5 MB, free: 73.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2621, allocations: 1.625 kB / 363.5 MB, free: 73.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001934/0.264, allocations: 0.6825 MB / 364.2 MB, free: 73.18 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.001089/0.2651, allocations: 432.2 kB / 364.6 MB, free: 72.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00237/0.2675, allocations: 1.739 MB / 366.4 MB, free: 72.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2675, allocations: 0 / 366.4 MB, free: 72.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.2688, allocations: 1.582 MB / 367.9 MB, free: 71.78 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.2699, allocations: 494.2 kB / 368.4 MB, free: 71.74 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006367/0.2763, allocations: 5.929 MB / 374.4 MB, free: 69.31 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006702/0.277, allocations: 0.9498 MB / 375.3 MB, free: 69.17 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006492/0.2776, allocations: 294 kB / 375.6 MB, free: 69.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007383/0.2784, allocations: 0.5367 MB / 376.1 MB, free: 69.02 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2784, allocations: 0 / 376.1 MB, free: 69.02 MB / 330.7 MB Notification: Performance of Templates: time 0.04207/0.3204, allocations: 35.66 MB / 411.8 MB, free: 36.82 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.722203692886978]