Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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.0008541/0.0008541, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001069/0.001923, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006894/0.0006894, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001152/0.001841, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9206/0.9206, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07753/0.9982, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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.1.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.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 244.7 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.106e-05, allocations: 2.312 kB / 244.7 MB, free: 14.19 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01034/0.01036, allocations: 13.82 MB / 258.6 MB, free: 300 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008481/0.01884, allocations: 5.477 MB / 264 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.02035, allocations: 103.4 kB / 264.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001992/0.02234, allocations: 1.099 MB / 265.2 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002636/0.02498, allocations: 1.49 MB / 266.7 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.02629, allocations: 1.017 MB / 267.7 MB, free: 7.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003318/0.02961, allocations: 4.584 MB / 272.3 MB, free: 2.469 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001791/0.0314, allocations: 1.853 MB / 274.2 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1141/0.1455, allocations: 3.469 MB / 277.7 MB, free: 3.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004062/0.1496, allocations: 2.098 MB / 279.8 MB, free: 3.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001805/0.1514, allocations: 0.5276 MB / 280.3 MB, free: 3.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003122/0.1545, allocations: 0.9081 MB / 281.2 MB, free: 3.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001865/0.1564, allocations: 1.164 MB / 282.4 MB, free: 3.816 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002746/0.1591, allocations: 1.304 MB / 283.7 MB, free: 3.816 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00489/0.164, allocations: 3.719 MB / 287.4 MB, free: 3.453 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.282e-05/0.164, allocations: 0.8438 kB / 287.4 MB, free: 3.453 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.164, allocations: 0 / 287.4 MB, free: 3.453 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001703/0.1642, allocations: 1.031 kB / 287.4 MB, free: 3.453 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.007802/0.172, allocations: 5.737 MB / 293.1 MB, free: 1.473 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.172, allocations: 11.59 kB / 293.1 MB, free: 1.473 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002601/0.1746, allocations: 1.174 MB / 294.3 MB, free: 1.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002507/0.1771, allocations: 1.774 MB / 296.1 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.1772, allocations: 248.6 kB / 296.3 MB, free: 0.707 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003373/0.1776, allocations: 337.8 kB / 296.6 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002983/0.1806, allocations: 2.56 MB / 299.2 MB, free: 15.37 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.227e-05/0.1806, allocations: 0.8438 kB / 299.2 MB, free: 15.37 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002124/0.1808, allocations: 135.5 kB / 299.3 MB, free: 15.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/0.181, allocations: 156.4 kB / 299.5 MB, free: 15.12 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.1826, allocations: 1.002 MB / 300.5 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01102/0.1936, allocations: 8.706 MB / 309.2 MB, free: 6.332 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002353/0.196, allocations: 1.833 MB / 311 MB, free: 4.566 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008809/0.1969, allocations: 0.7601 MB / 311.8 MB, free: 3.836 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001713/0.1971, allocations: 73.89 kB / 311.9 MB, free: 3.762 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.1971, allocations: 56.56 kB / 311.9 MB, free: 3.699 MB / 282.7 MB Notification: Performance of pre-optimization done (n=205): time 5.821e-06/0.1971, allocations: 3.984 kB / 311.9 MB, free: 3.695 MB / 282.7 MB Notification: Performance of matching and sorting (n=227): time 0.008059/0.2051, allocations: 4.694 MB / 316.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.2052, allocations: 77.41 kB / 316.7 MB, free: 14.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001444/0.2066, allocations: 1.718 MB / 318.4 MB, free: 13.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.196e-05/0.2067, allocations: 61.7 kB / 318.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004908/0.2072, allocations: 1.252 MB / 319.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003914/0.2076, allocations: 0.7876 MB / 320.5 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003452/0.208, allocations: 358.1 kB / 320.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.08e-05/0.208, allocations: 304 kB / 321.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.2084, allocations: 267.4 kB / 321.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000494/0.2089, allocations: 0.6478 MB / 322.1 MB, free: 9.918 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.2099, allocations: 1.162 MB / 323.2 MB, free: 8.703 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/0.2099, allocations: 4 kB / 323.2 MB, free: 8.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.001782/0.2117, allocations: 1.416 MB / 324.6 MB, free: 7.359 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.2117, allocations: 17.55 kB / 324.7 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.2117, allocations: 12 kB / 324.7 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000892/0.2126, allocations: 472.5 kB / 325.1 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.2138, allocations: 0.5598 MB / 325.7 MB, free: 6.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004194/0.218, allocations: 4.918 MB / 330.6 MB, free: 1.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009831/0.219, allocations: 63.98 kB / 330.7 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.2191, allocations: 67.97 kB / 330.7 MB, free: 1.215 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (231): * Single equations (assignments): 227 * 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,35,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008632/0.2199, allocations: 235.8 kB / 331 MB, free: 1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003155/0.2203, allocations: 219.8 kB / 331.2 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/0.2221, allocations: 1.431 MB / 332.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.459e-05/0.2221, allocations: 24 kB / 332.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.2221, allocations: 12 kB / 332.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.2221, allocations: 11.95 kB / 332.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004637/0.2268, allocations: 3.457 MB / 336.1 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.2268, allocations: 4 kB / 336.1 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008752/0.2277, allocations: 411.8 kB / 336.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005596/0.2282, allocations: 285.4 kB / 336.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000969/0.2292, allocations: 0.492 MB / 337.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-05/0.2293, allocations: 58.02 kB / 337.4 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005064/0.2343, allocations: 7.86 MB / 345.2 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.2343, allocations: 0 / 345.2 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002304/0.2367, allocations: 1.928 MB / 347.1 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/0.2369, allocations: 44 kB / 347.2 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005298/0.2374, allocations: 72.03 kB / 347.3 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.2376, allocations: 164.9 kB / 347.4 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-05/0.2377, allocations: 55.97 kB / 347.5 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007549/0.2385, allocations: 0.7997 MB / 348.3 MB, free: 15.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 3e-08/0.2385, allocations: 0 / 348.3 MB, free: 15.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001653/0.2401, allocations: 0.7184 MB / 349 MB, free: 15.15 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (168): * Single equations (assignments): 162 * 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.001221/0.2414, allocations: 0.5801 MB / 349.6 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.2434, allocations: 1.649 MB / 351.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.272e-05/0.2434, allocations: 39.81 kB / 351.3 MB, free: 13.17 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00141/0.2448, allocations: 1.526 MB / 352.8 MB, free: 11.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/0.2476, allocations: 4.755 MB / 357.5 MB, free: 5.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02256/0.2702, allocations: 6.114 MB / 363.7 MB, free: 15.85 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009574/0.2711, allocations: 0.8185 MB / 364.5 MB, free: 15.01 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001101/0.2722, allocations: 327.5 kB / 364.8 MB, free: 14.69 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009131/0.2731, allocations: 0.5186 MB / 365.3 MB, free: 14.16 MB / 346.7 MB Notification: Performance of SimCode: time 1.763e-06/0.2731, allocations: 0 / 365.3 MB, free: 14.16 MB / 346.7 MB Notification: Performance of Templates: time 0.05067/0.3238, allocations: 39.55 MB / 404.9 MB, free: 7.168 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.076890647411346]