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.001101/0.001101, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001132/0.001132, allocations: 166.7 kB / 25.7 MB, free: 8.406 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.8503/0.8503, allocations: 158.6 MB / 187.6 MB, free: 2.781 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.883e-06/1.883e-06, allocations: 0 / 251.6 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.532e-05/1.72e-05, allocations: 6.25 kB / 251.6 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01114/0.01116, allocations: 13.01 MB / 264.6 MB, free: 10.15 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008063/0.01922, allocations: 4.96 MB / 269.5 MB, free: 5.176 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001246/0.02047, allocations: 91.38 kB / 269.6 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001941/0.02241, allocations: 1.052 MB / 270.7 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002501/0.02491, allocations: 1.452 MB / 272.1 MB, free: 2.566 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001482/0.02639, allocations: 0.9895 MB / 273.1 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003311/0.0297, allocations: 4.525 MB / 277.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001822/0.03153, allocations: 1.809 MB / 279.5 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003307/0.03483, allocations: 3.201 MB / 282.7 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001773/0.03661, allocations: 2.093 MB / 284.8 MB, free: 5.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004238/0.03703, allocations: 0.5273 MB / 285.3 MB, free: 5.293 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001115/0.03814, allocations: 0.8781 MB / 286.2 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000849/0.03899, allocations: 1.402 MB / 287.6 MB, free: 3.012 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.04021, allocations: 1.559 MB / 289.1 MB, free: 1.449 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002918/0.04312, allocations: 3.886 MB / 293 MB, free: 13.55 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.04313, allocations: 0 / 293 MB, free: 13.55 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.04313, allocations: 0 / 293 MB, free: 13.55 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.423e-05/0.04315, allocations: 4 kB / 293 MB, free: 13.55 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.005279/0.04843, allocations: 4.804 MB / 297.8 MB, free: 8.684 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.04847, allocations: 11.98 kB / 297.8 MB, free: 8.672 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00246/0.05093, allocations: 1.163 MB / 299 MB, free: 7.508 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001994/0.05293, allocations: 1.589 MB / 300.6 MB, free: 5.844 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.05306, allocations: 251.1 kB / 300.8 MB, free: 5.598 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003834/0.05344, allocations: 340.3 kB / 301.2 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002612/0.05606, allocations: 2.559 MB / 303.7 MB, free: 2.621 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.451e-05/0.05611, allocations: 11.94 kB / 303.7 MB, free: 2.609 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002191/0.05633, allocations: 132 kB / 303.9 MB, free: 2.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001132/0.05644, allocations: 154.7 kB / 304 MB, free: 2.328 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.05794, allocations: 0.9959 MB / 305 MB, free: 1.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009092/0.06703, allocations: 8.657 MB / 313.7 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002344/0.06937, allocations: 1.829 MB / 315.5 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008984/0.07027, allocations: 0.7515 MB / 316.2 MB, free: 5.785 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002941/0.07321, allocations: 2.116 MB / 318.4 MB, free: 3.652 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.07324, allocations: 55.86 kB / 318.4 MB, free: 3.586 MB / 298.7 MB Notification: Performance of pre-optimization done (n=165): time 3.066e-06/0.07325, allocations: 0 / 318.4 MB, free: 3.586 MB / 298.7 MB Notification: Performance of matching and sorting (n=185): time 0.006395/0.07964, allocations: 4.028 MB / 322.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.07968, allocations: 81.39 kB / 322.5 MB, free: 15.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/0.08092, allocations: 1.688 MB / 324.2 MB, free: 13.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.267e-05/0.081, allocations: 57.7 kB / 324.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005542/0.08155, allocations: 1.321 MB / 325.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003186/0.08187, allocations: 0.6428 MB / 326.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003357/0.08221, allocations: 323.3 kB / 326.5 MB, free: 11.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.373e-05/0.08227, allocations: 305.1 kB / 326.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003333/0.0826, allocations: 234.7 kB / 327.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/0.0831, allocations: 0.6283 MB / 327.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009585/0.08406, allocations: 1.064 MB / 328.8 MB, free: 8.801 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.08407, allocations: 7.938 kB / 328.8 MB, free: 8.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.001642/0.08571, allocations: 1.32 MB / 330.1 MB, free: 7.457 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.08573, allocations: 15.97 kB / 330.1 MB, free: 7.441 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.08574, allocations: 12 kB / 330.1 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008609/0.0866, allocations: 455.5 kB / 330.6 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008251/0.08743, allocations: 399.4 kB / 331 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003784/0.09121, allocations: 4.708 MB / 335.7 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005208/0.09173, allocations: 55.98 kB / 335.7 MB, free: 1.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.653e-05/0.09183, allocations: 59.98 kB / 335.8 MB, free: 1.574 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.0005744/0.0924, allocations: 224.2 kB / 336 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.09265, allocations: 195.8 kB / 336.2 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.0943, allocations: 1.293 MB / 337.5 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.306e-05/0.09432, allocations: 23.98 kB / 337.5 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.09433, allocations: 12 kB / 337.5 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.09434, allocations: 11.97 kB / 337.5 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/0.09774, allocations: 2.715 MB / 340.2 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.09774, allocations: 0 / 340.2 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005793/0.09832, allocations: 243.7 kB / 340.5 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008934/0.09921, allocations: 0.5005 MB / 341 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.528e-05/0.09929, allocations: 43.98 kB / 341 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004907/0.1042, allocations: 7.798 MB / 348.8 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1042, allocations: 0 / 348.8 MB, free: 4.059 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001958/0.1062, allocations: 1.673 MB / 350.5 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004182/0.1066, allocations: 258.3 kB / 350.7 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001594/0.1067, allocations: 47.92 kB / 350.8 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004381/0.1072, allocations: 51.98 kB / 350.8 MB, free: 1.984 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/0.1074, allocations: 141.7 kB / 351 MB, free: 1.848 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.896e-05/0.1074, allocations: 39.98 kB / 351 MB, free: 1.809 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006496/0.1081, allocations: 0.7948 MB / 351.8 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1081, allocations: 0 / 351.8 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001452/0.1095, allocations: 0.6757 MB / 352.5 MB, free: 324 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.1191/0.2287, allocations: 0.5089 MB / 353 MB, free: 83.42 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003183/0.2318, allocations: 1.505 MB / 354.5 MB, free: 83.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.443e-05/0.2319, allocations: 23.94 kB / 354.5 MB, free: 83.1 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.2332, allocations: 1.292 MB / 355.8 MB, free: 82.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001662/0.2349, allocations: 0.4929 MB / 356.3 MB, free: 82.56 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007162/0.242, allocations: 5.723 MB / 362 MB, free: 80.24 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007266/0.2427, allocations: 0.7828 MB / 362.8 MB, free: 80.1 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007284/0.2435, allocations: 295.9 kB / 363.1 MB, free: 80.05 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007367/0.2442, allocations: 485.8 kB / 363.6 MB, free: 79.99 MB / 330.7 MB Notification: Performance of SimCode: time 2.474e-06/0.2442, allocations: 3.75 kB / 363.6 MB, free: 79.99 MB / 330.7 MB Notification: Performance of Templates: time 0.0381/0.2823, allocations: 35.53 MB / 399.1 MB, free: 50.75 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.876243122853339]