Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009385/0.0009385, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009384/0.0009384, allocations: 143.8 kB / 24.98 MB, free: 8.324 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9385/0.9385, allocations: 173.3 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.[0-9,]+.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.[0-9,]+.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 268.1 MB, free: 6.684 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.515e-05/1.658e-05, allocations: 2.312 kB / 268.1 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0106/0.01062, allocations: 13.45 MB / 281.6 MB, free: 9.164 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006444/0.01706, allocations: 4.875 MB / 286.4 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008651/0.01793, allocations: 95.44 kB / 286.5 MB, free: 4.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001808/0.01973, allocations: 1.04 MB / 287.6 MB, free: 3.133 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002149/0.02188, allocations: 1.483 MB / 289.1 MB, free: 1.641 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.0231, allocations: 0.9836 MB / 290 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1111/0.1342, allocations: 4.474 MB / 294.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002439/0.1367, allocations: 1.797 MB / 296.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003672/0.1403, allocations: 3.016 MB / 299.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.1429, allocations: 2.117 MB / 301.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000861/0.1438, allocations: 0.5357 MB / 302 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001285/0.1451, allocations: 0.8952 MB / 302.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006797/0.1457, allocations: 1.42 MB / 304.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.1469, allocations: 1.59 MB / 305.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002691/0.1496, allocations: 3.913 MB / 309.8 MB, free: 10.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1496, allocations: 0 / 309.8 MB, free: 10.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1496, allocations: 0 / 309.8 MB, free: 10.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.887e-05/0.1496, allocations: 3.156 kB / 309.8 MB, free: 10.9 MB / 266.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.005501/0.1551, allocations: 5.252 MB / 315.1 MB, free: 7.801 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.1551, allocations: 12.92 kB / 315.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002813/0.158, allocations: 1.327 MB / 316.4 MB, free: 6.465 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002248/0.1602, allocations: 2.577 MB / 319 MB, free: 3.941 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.286e-05/0.1603, allocations: 249.9 kB / 319.2 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002844/0.1606, allocations: 340.8 kB / 319.5 MB, free: 3.367 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003136/0.1637, allocations: 2.717 MB / 322.3 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.787e-05/0.1638, allocations: 4.594 kB / 322.3 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002121/0.164, allocations: 135.3 kB / 322.4 MB, free: 448 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001019/0.1641, allocations: 154.7 kB / 322.6 MB, free: 292 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002525/0.1666, allocations: 1.289 MB / 323.8 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01132/0.1779, allocations: 11.23 MB / 335.1 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003086/0.181, allocations: 2.21 MB / 337.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001287/0.1823, allocations: 0.9441 MB / 338.2 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003534/0.1858, allocations: 2.698 MB / 340.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/0.1859, allocations: 54.7 kB / 341 MB, free: 14.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=165): time 5.069e-06/0.1859, allocations: 1.031 kB / 341 MB, free: 14.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=185): time 0.007709/0.1936, allocations: 4.925 MB / 345.9 MB, free: 9.164 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.1936, allocations: 71.19 kB / 346 MB, free: 9.082 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001893/0.1955, allocations: 1.948 MB / 347.9 MB, free: 7.094 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.369e-05/0.1956, allocations: 57.7 kB / 348 MB, free: 7.031 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00102/0.1966, allocations: 1.777 MB / 349.8 MB, free: 5.238 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003795/0.197, allocations: 0.6635 MB / 350.4 MB, free: 4.582 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000394/0.1974, allocations: 353.2 kB / 350.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.301e-05/0.1975, allocations: 480.8 kB / 351.2 MB, free: 3.758 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005883/0.1981, allocations: 319.8 kB / 351.5 MB, free: 3.445 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008785/0.199, allocations: 0.903 MB / 352.4 MB, free: 2.332 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.2005, allocations: 1.35 MB / 353.8 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.2005, allocations: 4 kB / 353.8 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.002793/0.2033, allocations: 1.849 MB / 355.7 MB, free: 15.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.2033, allocations: 12 kB / 355.7 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.2034, allocations: 11.94 kB / 355.7 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.2044, allocations: 490 kB / 356.2 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000938/0.2054, allocations: 425.8 kB / 356.6 MB, free: 14.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005268/0.2107, allocations: 6.383 MB / 363 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006719/0.2113, allocations: 79.89 kB / 363 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.2114, allocations: 75.98 kB / 363.1 MB, free: 7.414 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%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005951/0.212, allocations: 262.7 kB / 363.4 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000308/0.2123, allocations: 310.4 kB / 363.7 MB, free: 6.863 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002299/0.2146, allocations: 1.689 MB / 365.4 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.482e-05/0.2147, allocations: 20 kB / 365.4 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.2147, allocations: 8 kB / 365.4 MB, free: 5.148 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.2147, allocations: 11.97 kB / 365.4 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005361/0.22, allocations: 4.36 MB / 369.8 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001868/0.2202, allocations: 4 kB / 369.8 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006679/0.2209, allocations: 271.7 kB / 370 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/0.222, allocations: 0.5334 MB / 370.6 MB, free: 15.97 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.209e-05/0.2221, allocations: 52.05 kB / 370.6 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006325/0.2284, allocations: 10.64 MB / 381.2 MB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.2284, allocations: 4 kB / 381.3 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002889/0.2313, allocations: 2.232 MB / 383.5 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005303/0.2318, allocations: 453.1 kB / 383.9 MB, free: 2.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.232, allocations: 32 kB / 384 MB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005109/0.2325, allocations: 87.88 kB / 384 MB, free: 2.043 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002392/0.2327, allocations: 149.4 kB / 384.2 MB, free: 1.902 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.878e-05/0.2328, allocations: 51.98 kB / 384.2 MB, free: 1.852 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001215/0.234, allocations: 1.131 MB / 385.4 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.234, allocations: 0 / 385.4 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001401/0.2354, allocations: 0.6913 MB / 386.1 MB, free: 12 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.stray.Phi.re,aimc.stator.stray.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.0008746/0.2363, allocations: 434.2 kB / 386.5 MB, free: 15.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002268/0.2386, allocations: 1.86 MB / 388.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2386, allocations: 256 / 388.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.24, allocations: 1.65 MB / 390 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.2412, allocations: 0.4953 MB / 390.5 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006909/0.2481, allocations: 6.027 MB / 396.5 MB, free: 5.602 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007634/0.2489, allocations: 0.9462 MB / 397.5 MB, free: 4.633 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008509/0.2497, allocations: 403 kB / 397.9 MB, free: 4.234 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003274/0.2501, allocations: 160.5 kB / 398 MB, free: 4.078 MB / 346.7 MB Notification: Performance of SimCode: time 1.242e-06/0.2501, allocations: 0 / 398 MB, free: 4.078 MB / 346.7 MB Notification: Performance of Templates: time 0.0415/0.2916, allocations: 35.22 MB / 433.2 MB, free: 1.324 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 4.783924588933587]