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.000946/0.000946, allocations: 76.81 kB / 22.28 MB, free: 2.211 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.0009683/0.0009683, allocations: 169.9 kB / 25.7 MB, free: 8.441 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.8395/0.8395, allocations: 158.6 MB / 187.6 MB, free: 2.793 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.884e-06/1.884e-06, allocations: 0 / 251.6 MB, free: 7.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.662e-05/2.85e-05, allocations: 2.312 kB / 251.6 MB, free: 7.18 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01226/0.01228, allocations: 13.06 MB / 264.7 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009083/0.02137, allocations: 4.956 MB / 269.6 MB, free: 5.074 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002083/0.02345, allocations: 87.44 kB / 269.7 MB, free: 4.988 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002786/0.02624, allocations: 1.064 MB / 270.8 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005513/0.03175, allocations: 1.428 MB / 272.2 MB, free: 2.48 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002574/0.03432, allocations: 0.9779 MB / 273.2 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005969/0.04029, allocations: 4.525 MB / 277.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002659/0.04295, allocations: 1.806 MB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005324/0.04827, allocations: 3.201 MB / 282.7 MB, free: 7.844 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004047/0.05232, allocations: 2.093 MB / 284.8 MB, free: 5.746 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001483/0.0538, allocations: 0.5273 MB / 285.4 MB, free: 5.219 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002867/0.05667, allocations: 0.8897 MB / 286.2 MB, free: 4.328 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001444/0.05811, allocations: 1.41 MB / 287.7 MB, free: 2.918 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003169/0.06128, allocations: 1.563 MB / 289.2 MB, free: 1.352 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005119/0.0664, allocations: 3.882 MB / 293.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.06641, allocations: 0 / 293.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.06641, allocations: 0 / 293.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001563/0.06657, allocations: 0 / 293.1 MB, free: 13.46 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.007383/0.07395, allocations: 4.808 MB / 297.9 MB, free: 8.59 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.07399, allocations: 11.98 kB / 297.9 MB, free: 8.578 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002917/0.07691, allocations: 1.156 MB / 299.1 MB, free: 7.422 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002554/0.07946, allocations: 1.597 MB / 300.7 MB, free: 5.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.0796, allocations: 255.1 kB / 300.9 MB, free: 5.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003674/0.07997, allocations: 340.3 kB / 301.3 MB, free: 5.168 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003423/0.08339, allocations: 2.559 MB / 303.8 MB, free: 2.523 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.078e-05/0.08345, allocations: 3.953 kB / 303.8 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002009/0.08365, allocations: 132 kB / 303.9 MB, free: 2.391 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.08377, allocations: 154.7 kB / 304.1 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001783/0.08555, allocations: 0.9882 MB / 305.1 MB, free: 1.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01238/0.09793, allocations: 8.661 MB / 313.7 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00317/0.1011, allocations: 1.848 MB / 315.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/0.1023, allocations: 0.7514 MB / 316.3 MB, free: 5.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004587/0.1069, allocations: 2.104 MB / 318.4 MB, free: 3.559 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.1069, allocations: 55.88 kB / 318.5 MB, free: 3.492 MB / 298.7 MB Notification: Performance of pre-optimization done (n=165): time 4.83e-06/0.1069, allocations: 0 / 318.5 MB, free: 3.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=185): time 0.009059/0.116, allocations: 4.036 MB / 322.5 MB, free: 15.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.116, allocations: 73.41 kB / 322.6 MB, free: 15.33 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001942/0.118, allocations: 1.688 MB / 324.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001227/0.1181, allocations: 57.7 kB / 324.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00099/0.1191, allocations: 1.317 MB / 325.7 MB, free: 12.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004298/0.1195, allocations: 0.6428 MB / 326.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004212/0.12, allocations: 331.3 kB / 326.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.092e-05/0.12, allocations: 309.1 kB / 326.9 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004385/0.1205, allocations: 234.7 kB / 327.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006011/0.1211, allocations: 0.6322 MB / 327.8 MB, free: 9.906 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.1223, allocations: 1.056 MB / 328.9 MB, free: 8.703 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.1223, allocations: 4 kB / 328.9 MB, free: 8.699 MB / 314.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.002208/0.1245, allocations: 1.32 MB / 330.2 MB, free: 7.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.1245, allocations: 11.94 kB / 330.2 MB, free: 7.352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.1246, allocations: 12 kB / 330.2 MB, free: 7.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.1257, allocations: 463.7 kB / 330.7 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.127, allocations: 479.2 kB / 331.1 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005133/0.1322, allocations: 4.724 MB / 335.8 MB, free: 1.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008996/0.1331, allocations: 60.02 kB / 335.9 MB, free: 1.438 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.1332, allocations: 63.92 kB / 336 MB, free: 1.375 MB / 314.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.0007048/0.1339, allocations: 220.3 kB / 336.2 MB, free: 1.148 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003422/0.1342, allocations: 199.8 kB / 336.4 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002129/0.1364, allocations: 1.293 MB / 337.7 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.014e-05/0.1364, allocations: 20 kB / 337.7 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.1364, allocations: 16.06 kB / 337.7 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.1364, allocations: 15.89 kB / 337.7 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004694/0.1411, allocations: 2.708 MB / 340.4 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.1411, allocations: 0 / 340.4 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009145/0.1421, allocations: 287.7 kB / 340.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.1432, allocations: 0.5042 MB / 341.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.1434, allocations: 51.92 kB / 341.3 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006557/0.1499, allocations: 7.821 MB / 349.1 MB, free: 3.789 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.1499, allocations: 4 kB / 349.1 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002566/0.1525, allocations: 1.669 MB / 350.8 MB, free: 2.066 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005676/0.153, allocations: 254.3 kB / 351 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002094/0.1533, allocations: 40 kB / 351 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005976/0.1539, allocations: 63.91 kB / 351.1 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003319/0.1572, allocations: 145.6 kB / 351.3 MB, free: 1.574 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.355e-05/0.1573, allocations: 35.98 kB / 351.3 MB, free: 1.539 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008897/0.1582, allocations: 0.7987 MB / 352.1 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1582, allocations: 0 / 352.1 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001842/0.16, allocations: 0.6757 MB / 352.8 MB, free: 44 kB / 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.1362/0.2962, allocations: 0.5133 MB / 353.3 MB, free: 79.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002587/0.2987, allocations: 1.508 MB / 354.8 MB, free: 79.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.668e-05/0.2988, allocations: 21.09 kB / 354.8 MB, free: 79.21 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.3, allocations: 1.29 MB / 356.1 MB, free: 78.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.3014, allocations: 490.8 kB / 356.6 MB, free: 78.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006962/0.3084, allocations: 5.738 MB / 362.3 MB, free: 76.33 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007206/0.3091, allocations: 0.7788 MB / 363.1 MB, free: 76.19 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008849/0.31, allocations: 297.5 kB / 363.4 MB, free: 76.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007858/0.3108, allocations: 486.9 kB / 363.9 MB, free: 76.08 MB / 330.7 MB Notification: Performance of SimCode: time 1.433e-06/0.3108, allocations: 7.75 kB / 363.9 MB, free: 76.08 MB / 330.7 MB Notification: Performance of Templates: time 0.04316/0.3539, allocations: 35.88 MB / 399.7 MB, free: 47.72 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 -s gbode -gbm=radauIIA3 -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.550350934267044]