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.0008019/0.0008019, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001074/0.001074, allocations: 166.1 kB / 25.33 MB, free: 8.746 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.832/0.832, allocations: 158.6 MB / 187.2 MB, free: 2.91 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.433e-06/1.433e-06, allocations: 0 / 251.1 MB, free: 7.477 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.26e-05/1.404e-05, allocations: 2.312 kB / 251.1 MB, free: 7.473 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01161/0.01162, allocations: 13.41 MB / 264.5 MB, free: 9.996 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007132/0.01876, allocations: 4.81 MB / 269.3 MB, free: 5.172 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001183/0.01994, allocations: 87.44 kB / 269.4 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001696/0.02163, allocations: 1.041 MB / 270.4 MB, free: 4.039 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002274/0.02391, allocations: 1.436 MB / 271.9 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.02525, allocations: 0.978 MB / 272.9 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003261/0.02851, allocations: 4.521 MB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0017/0.03021, allocations: 1.763 MB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002855/0.03306, allocations: 3.197 MB / 282.3 MB, free: 8.031 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002549/0.03561, allocations: 2.081 MB / 284.4 MB, free: 5.945 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001175/0.03679, allocations: 0.5273 MB / 284.9 MB, free: 5.418 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001727/0.03851, allocations: 0.8703 MB / 285.8 MB, free: 4.547 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008921/0.0394, allocations: 1.41 MB / 287.2 MB, free: 3.133 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002214/0.04162, allocations: 1.555 MB / 288.8 MB, free: 1.574 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004443/0.04606, allocations: 3.886 MB / 292.7 MB, free: 13.68 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.04607, allocations: 4 kB / 292.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.04607, allocations: 7.984 kB / 292.7 MB, free: 13.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001645/0.04623, allocations: 0 / 292.7 MB, free: 13.66 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.007862/0.05409, allocations: 5.213 MB / 297.9 MB, free: 8.379 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.48e-05/0.05417, allocations: 11.98 kB / 297.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003327/0.0575, allocations: 1.329 MB / 299.2 MB, free: 7.035 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004371/0.06187, allocations: 2.396 MB / 301.6 MB, free: 4.57 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002074/0.06207, allocations: 255.1 kB / 301.9 MB, free: 4.32 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005634/0.06264, allocations: 352.2 kB / 302.2 MB, free: 3.977 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009152/0.07179, allocations: 2.71 MB / 304.9 MB, free: 1.176 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.213e-05/0.07188, allocations: 3.938 kB / 304.9 MB, free: 1.172 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003652/0.07225, allocations: 136 kB / 305.1 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001993/0.07245, allocations: 158.7 kB / 305.2 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004396/0.07684, allocations: 1.277 MB / 306.5 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01475/0.09159, allocations: 11.2 MB / 317.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003014/0.0946, allocations: 2.216 MB / 319.9 MB, free: 2.023 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.09582, allocations: 0.9422 MB / 320.9 MB, free: 1.082 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003367/0.09919, allocations: 2.661 MB / 323.5 MB, free: 14.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.09922, allocations: 50.7 kB / 323.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=165): time 2.916e-06/0.09923, allocations: 0 / 323.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=185): time 0.007819/0.107, allocations: 4.976 MB / 328.5 MB, free: 9.309 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.1071, allocations: 69.41 kB / 328.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001716/0.1088, allocations: 1.897 MB / 330.5 MB, free: 7.289 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.137e-05/0.1089, allocations: 61.69 kB / 330.6 MB, free: 7.223 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000922/0.1098, allocations: 1.795 MB / 332.4 MB, free: 5.406 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/0.1102, allocations: 0.6585 MB / 333 MB, free: 4.742 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005229/0.1107, allocations: 361.1 kB / 333.4 MB, free: 4.383 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1108, allocations: 480.7 kB / 333.8 MB, free: 3.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005553/0.1113, allocations: 319.8 kB / 334.2 MB, free: 3.598 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007956/0.1121, allocations: 0.8965 MB / 335 MB, free: 2.488 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001729/0.1139, allocations: 1.36 MB / 336.4 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/0.1139, allocations: 11.88 kB / 336.4 MB, free: 0.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.002477/0.1164, allocations: 1.834 MB / 338.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.1164, allocations: 12 kB / 338.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.1164, allocations: 8 kB / 338.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.1174, allocations: 0.4946 MB / 338.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009078/0.1183, allocations: 423.4 kB / 339.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005018/0.1233, allocations: 6.351 MB / 345.5 MB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005853/0.1239, allocations: 79.95 kB / 345.6 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.124, allocations: 75.98 kB / 345.7 MB, free: 7.375 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.0004902/0.1245, allocations: 272.2 kB / 346 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002864/0.1248, allocations: 302.4 kB / 346.2 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002203/0.127, allocations: 1.692 MB / 347.9 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.026e-05/0.127, allocations: 20 kB / 348 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.127, allocations: 8 kB / 348 MB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.127, allocations: 11.91 kB / 348 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005277/0.1323, allocations: 4.334 MB / 352.3 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1323, allocations: 0 / 352.3 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006355/0.133, allocations: 267.6 kB / 352.6 MB, free: 368 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1261/0.259, allocations: 0.535 MB / 353.1 MB, free: 79.03 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003517/0.2594, allocations: 50.73 kB / 353.2 MB, free: 79.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005808/0.2652, allocations: 10.64 MB / 363.8 MB, free: 71.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2652, allocations: 11.27 kB / 363.8 MB, free: 71.27 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003061/0.2683, allocations: 2.22 MB / 366 MB, free: 70.89 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006052/0.2689, allocations: 427.2 kB / 366.5 MB, free: 70.89 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001829/0.269, allocations: 41.22 kB / 366.5 MB, free: 70.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005077/0.2696, allocations: 73.02 kB / 366.6 MB, free: 70.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.2698, allocations: 155.7 kB / 366.7 MB, free: 70.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.447e-05/0.2699, allocations: 49.66 kB / 366.8 MB, free: 70.89 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001097/0.271, allocations: 1.093 MB / 367.9 MB, free: 70.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.271, allocations: 0 / 367.9 MB, free: 70.7 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00155/0.2725, allocations: 0.6774 MB / 368.5 MB, free: 70.7 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.0008468/0.2734, allocations: 436.7 kB / 369 MB, free: 70.51 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00219/0.2756, allocations: 1.868 MB / 370.8 MB, free: 70.05 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2756, allocations: 0 / 370.8 MB, free: 70.05 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.2768, allocations: 1.654 MB / 372.5 MB, free: 69.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.278, allocations: 0.4908 MB / 373 MB, free: 69.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006507/0.2845, allocations: 5.99 MB / 379 MB, free: 66.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006679/0.2851, allocations: 0.9464 MB / 379.9 MB, free: 66.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007361/0.2859, allocations: 390.5 kB / 380.3 MB, free: 66.55 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000295/0.2862, allocations: 146.9 kB / 380.4 MB, free: 66.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.2862, allocations: 3.938 kB / 380.4 MB, free: 66.54 MB / 330.7 MB Notification: Performance of Templates: time 0.03562/0.3218, allocations: 34.93 MB / 415.4 MB, free: 33.89 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.534521027933806]