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.0007945/0.0007945, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.0009096/0.0009096, allocations: 166.9 kB / 25.75 MB, free: 8.598 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.8913/0.8913, allocations: 158.6 MB / 187.5 MB, free: 2.934 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.663e-06/1.663e-06, allocations: 0 / 251.2 MB, free: 7.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.987e-05/2.153e-05, allocations: 2.312 kB / 251.2 MB, free: 7.766 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01366/0.01368, allocations: 13.34 MB / 264.5 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008144/0.02183, allocations: 4.791 MB / 269.3 MB, free: 5.555 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.02361, allocations: 91.38 kB / 269.4 MB, free: 5.465 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002327/0.02593, allocations: 1.04 MB / 270.4 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003512/0.02945, allocations: 1.425 MB / 271.8 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001529/0.03097, allocations: 0.9857 MB / 272.8 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00387/0.03485, allocations: 4.513 MB / 277.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002298/0.03714, allocations: 1.766 MB / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00321/0.04035, allocations: 3.014 MB / 282.1 MB, free: 8.602 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002416/0.04277, allocations: 2.108 MB / 284.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008672/0.04364, allocations: 0.5352 MB / 284.8 MB, free: 5.953 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001499/0.04514, allocations: 0.8819 MB / 285.6 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008523/0.04599, allocations: 1.426 MB / 287.1 MB, free: 3.641 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001836/0.04782, allocations: 1.59 MB / 288.7 MB, free: 2.047 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004362/0.05219, allocations: 3.91 MB / 292.6 MB, free: 14.12 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.05219, allocations: 0 / 292.6 MB, free: 14.12 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.05219, allocations: 0 / 292.6 MB, free: 14.12 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001641/0.05236, allocations: 3.938 kB / 292.6 MB, free: 14.12 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.008454/0.06081, allocations: 5.244 MB / 297.8 MB, free: 8.801 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.06085, allocations: 11.98 kB / 297.8 MB, free: 8.789 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003139/0.06399, allocations: 1.329 MB / 299.2 MB, free: 7.457 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003506/0.0675, allocations: 2.392 MB / 301.6 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.06765, allocations: 263 kB / 301.8 MB, free: 4.738 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003776/0.06803, allocations: 332.3 kB / 302.1 MB, free: 4.414 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004105/0.07213, allocations: 2.722 MB / 304.9 MB, free: 1.602 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.02e-05/0.07219, allocations: 4 kB / 304.9 MB, free: 1.598 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002206/0.07241, allocations: 136 kB / 305 MB, free: 1.465 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/0.07254, allocations: 154.7 kB / 305.1 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002598/0.07513, allocations: 1.284 MB / 306.4 MB, free: 20 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01416/0.08929, allocations: 11.23 MB / 317.7 MB, free: 4.492 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004912/0.09421, allocations: 2.224 MB / 319.9 MB, free: 2.406 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001946/0.09615, allocations: 0.9338 MB / 320.8 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006028/0.1022, allocations: 2.693 MB / 323.5 MB, free: 14.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/0.1022, allocations: 54.7 kB / 323.6 MB, free: 14.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=165): time 4.909e-06/0.1022, allocations: 0 / 323.6 MB, free: 14.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=185): time 0.01142/0.1137, allocations: 4.988 MB / 328.6 MB, free: 9.656 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.1137, allocations: 73.41 kB / 328.6 MB, free: 9.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002999/0.1167, allocations: 1.944 MB / 330.6 MB, free: 7.586 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001135/0.1168, allocations: 57.7 kB / 330.6 MB, free: 7.523 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.118, allocations: 1.768 MB / 332.4 MB, free: 5.734 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000494/0.1185, allocations: 0.674 MB / 333.1 MB, free: 5.055 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004959/0.119, allocations: 357.1 kB / 333.4 MB, free: 4.699 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1191, allocations: 476.8 kB / 333.9 MB, free: 4.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007402/0.1198, allocations: 323.8 kB / 334.2 MB, free: 3.914 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/0.121, allocations: 0.9043 MB / 335.1 MB, free: 2.797 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002494/0.1235, allocations: 1.348 MB / 336.4 MB, free: 1.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.1235, allocations: 3.938 kB / 336.5 MB, free: 1.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00357/0.1271, allocations: 1.838 MB / 338.3 MB, free: 15.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.1271, allocations: 12 kB / 338.3 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.1271, allocations: 15.98 kB / 338.3 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001644/0.1288, allocations: 498.3 kB / 338.8 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.1301, allocations: 431.3 kB / 339.2 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00735/0.1375, allocations: 6.351 MB / 345.6 MB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.1386, allocations: 79.95 kB / 345.7 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.1387, allocations: 76.02 kB / 345.7 MB, free: 7.688 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.0009003/0.1396, allocations: 260.2 kB / 346 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005178/0.1402, allocations: 302.4 kB / 346.3 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002452/0.1426, allocations: 1.696 MB / 348 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.62e-05/0.1426, allocations: 23.98 kB / 348 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1426, allocations: 12 kB / 348 MB, free: 5.367 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.1427, allocations: 7.969 kB / 348 MB, free: 5.359 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005945/0.1486, allocations: 4.358 MB / 352.4 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.1486, allocations: 4 kB / 352.4 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006721/0.1493, allocations: 267.6 kB / 352.6 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.1505, allocations: 0.5488 MB / 353.2 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.083e-05/0.1505, allocations: 43.98 kB / 353.2 MB, free: 48 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1192/0.2698, allocations: 10.63 MB / 363.9 MB, free: 90.97 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2698, allocations: 3.844 kB / 363.9 MB, free: 90.97 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003217/0.273, allocations: 2.238 MB / 366.1 MB, free: 90.58 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006425/0.2736, allocations: 444.7 kB / 366.5 MB, free: 90.58 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001816/0.2738, allocations: 38.22 kB / 366.6 MB, free: 90.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005333/0.2744, allocations: 79.78 kB / 366.7 MB, free: 90.58 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/0.2746, allocations: 153.7 kB / 366.8 MB, free: 90.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.242e-05/0.2747, allocations: 49.97 kB / 366.9 MB, free: 90.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001169/0.2759, allocations: 1.139 MB / 368 MB, free: 90.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2759, allocations: 0 / 368 MB, free: 90.38 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001575/0.2774, allocations: 0.6956 MB / 368.7 MB, free: 90.38 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.0009704/0.2784, allocations: 430.5 kB / 369.1 MB, free: 90.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002262/0.2807, allocations: 1.878 MB / 371 MB, free: 89.6 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2807, allocations: 0 / 371 MB, free: 89.6 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.282, allocations: 1.64 MB / 372.6 MB, free: 88.53 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.2831, allocations: 0.5058 MB / 373.1 MB, free: 88.11 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006518/0.2896, allocations: 6.022 MB / 379.2 MB, free: 82.61 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006132/0.2903, allocations: 0.9474 MB / 380.1 MB, free: 81.91 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008271/0.2911, allocations: 417.2 kB / 380.5 MB, free: 81.62 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000299/0.2914, allocations: 159 kB / 380.7 MB, free: 81.47 MB / 330.7 MB Notification: Performance of SimCode: time 1.593e-06/0.2914, allocations: 0 / 380.7 MB, free: 81.47 MB / 330.7 MB Notification: Performance of Templates: time 0.03624/0.3276, allocations: 35.24 MB / 415.9 MB, free: 46.18 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.70415776502341]