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.001431/0.001431, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.00152/0.00152, allocations: 169.2 kB / 25.33 MB, free: 9.02 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.8832/0.8832, allocations: 158.6 MB / 187.2 MB, free: 2.93 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.603e-06/1.603e-06, allocations: 0 / 251.1 MB, free: 7.473 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.83e-05, allocations: 6.25 kB / 251.1 MB, free: 7.465 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01111/0.01114, allocations: 13.42 MB / 264.5 MB, free: 9.977 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007757/0.0189, allocations: 4.803 MB / 269.3 MB, free: 5.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.0204, allocations: 87.44 kB / 269.4 MB, free: 5.074 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002152/0.02255, allocations: 1.036 MB / 270.4 MB, free: 4.031 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002772/0.02532, allocations: 1.436 MB / 271.9 MB, free: 2.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.0268, allocations: 0.9818 MB / 272.9 MB, free: 1.602 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003736/0.03054, allocations: 4.513 MB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001988/0.03253, allocations: 1.766 MB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003012/0.03554, allocations: 3.014 MB / 282.2 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002249/0.03779, allocations: 2.116 MB / 284.3 MB, free: 6.086 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000706/0.03849, allocations: 0.5352 MB / 284.8 MB, free: 5.551 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.03961, allocations: 0.8819 MB / 285.7 MB, free: 4.668 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007954/0.0404, allocations: 1.426 MB / 287.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001423/0.04183, allocations: 1.586 MB / 288.7 MB, free: 1.648 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003345/0.04517, allocations: 3.914 MB / 292.6 MB, free: 13.72 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.04518, allocations: 0 / 292.6 MB, free: 13.72 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.04518, allocations: 0 / 292.6 MB, free: 13.72 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.37e-05/0.04525, allocations: 0 / 292.6 MB, free: 13.72 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.006575/0.05183, allocations: 5.244 MB / 297.9 MB, free: 8.402 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.05187, allocations: 11.98 kB / 297.9 MB, free: 8.391 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002778/0.05465, allocations: 1.325 MB / 299.2 MB, free: 7.062 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00287/0.05752, allocations: 2.392 MB / 301.6 MB, free: 4.602 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.05764, allocations: 255.1 kB / 301.8 MB, free: 4.352 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003468/0.05799, allocations: 344.2 kB / 302.2 MB, free: 4.016 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003715/0.06171, allocations: 2.722 MB / 304.9 MB, free: 1.203 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.457e-05/0.06176, allocations: 4 kB / 304.9 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002176/0.06198, allocations: 136 kB / 305 MB, free: 1.066 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001183/0.0621, allocations: 154.7 kB / 305.2 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002494/0.06459, allocations: 1.284 MB / 306.5 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01164/0.07623, allocations: 11.23 MB / 317.7 MB, free: 4.094 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003316/0.07954, allocations: 2.224 MB / 319.9 MB, free: 2.008 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.0808, allocations: 0.9299 MB / 320.8 MB, free: 1.078 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003575/0.08438, allocations: 2.696 MB / 323.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/0.08442, allocations: 58.69 kB / 323.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=165): time 2.866e-06/0.08442, allocations: 0 / 323.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=185): time 0.00837/0.09279, allocations: 4.984 MB / 328.6 MB, free: 9.262 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.09283, allocations: 73.41 kB / 328.7 MB, free: 9.176 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/0.09466, allocations: 1.948 MB / 330.6 MB, free: 7.188 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.949e-05/0.09474, allocations: 61.64 kB / 330.7 MB, free: 7.121 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.09597, allocations: 1.772 MB / 332.4 MB, free: 5.328 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000368/0.09634, allocations: 0.6662 MB / 333.1 MB, free: 4.656 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000388/0.09673, allocations: 357.1 kB / 333.5 MB, free: 4.301 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.09682, allocations: 484.7 kB / 333.9 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005402/0.09736, allocations: 319.8 kB / 334.2 MB, free: 3.512 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008143/0.09818, allocations: 0.9043 MB / 335.1 MB, free: 2.395 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/0.09966, allocations: 1.352 MB / 336.5 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.09966, allocations: 3.938 kB / 336.5 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.002488/0.1021, allocations: 1.838 MB / 338.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.1022, allocations: 8 kB / 338.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.1022, allocations: 16.25 kB / 338.4 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.1032, allocations: 0.4905 MB / 338.9 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.1044, allocations: 431.3 kB / 339.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004986/0.1094, allocations: 6.344 MB / 345.6 MB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008245/0.1103, allocations: 84.02 kB / 345.7 MB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.1104, allocations: 75.98 kB / 345.8 MB, free: 7.285 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.0006907/0.1111, allocations: 264.2 kB / 346 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000321/0.1114, allocations: 302.4 kB / 346.3 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002747/0.1141, allocations: 1.696 MB / 348 MB, free: 4.996 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.37e-05/0.1141, allocations: 20 kB / 348 MB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.1142, allocations: 8 kB / 348 MB, free: 4.969 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.1142, allocations: 15.95 kB / 348.1 MB, free: 4.953 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00555/0.1197, allocations: 4.361 MB / 352.4 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.1197, allocations: 4 kB / 352.4 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006563/0.1204, allocations: 267.6 kB / 352.7 MB, free: 248 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1335/0.2539, allocations: 0.5275 MB / 353.2 MB, free: 79.06 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003046/0.2542, allocations: 47.39 kB / 353.3 MB, free: 79.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006207/0.2604, allocations: 10.64 MB / 363.9 MB, free: 71.3 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2604, allocations: 6.781 kB / 363.9 MB, free: 71.3 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003331/0.2638, allocations: 2.232 MB / 366.1 MB, free: 70.92 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006953/0.2645, allocations: 450.3 kB / 366.6 MB, free: 70.92 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001699/0.2646, allocations: 36.66 kB / 366.6 MB, free: 70.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005288/0.2652, allocations: 77.61 kB / 366.7 MB, free: 70.92 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002776/0.2654, allocations: 156.3 kB / 366.8 MB, free: 70.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.491e-05/0.2655, allocations: 50.33 kB / 366.9 MB, free: 70.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001313/0.2668, allocations: 1.139 MB / 368 MB, free: 70.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2668, allocations: 0 / 368 MB, free: 70.73 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001803/0.2686, allocations: 0.6867 MB / 368.7 MB, free: 70.73 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.0009701/0.2696, allocations: 442.1 kB / 369.1 MB, free: 70.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002423/0.272, allocations: 1.874 MB / 371 MB, free: 70.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.272, allocations: 0 / 371 MB, free: 70.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001388/0.2734, allocations: 1.645 MB / 372.7 MB, free: 69.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.2746, allocations: 0.4958 MB / 373.2 MB, free: 69.26 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007584/0.2822, allocations: 6.035 MB / 379.2 MB, free: 66.78 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006753/0.2829, allocations: 0.9501 MB / 380.2 MB, free: 66.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008224/0.2837, allocations: 404.9 kB / 380.5 MB, free: 66.55 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003066/0.284, allocations: 161.4 kB / 380.7 MB, free: 66.55 MB / 330.7 MB Notification: Performance of SimCode: time 1.933e-06/0.284, allocations: 0 / 380.7 MB, free: 66.55 MB / 330.7 MB Notification: Performance of Templates: time 0.03744/0.3215, allocations: 35.24 MB / 415.9 MB, free: 33.32 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.810130414087325]