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.0008786/0.0008786, allocations: 80.06 kB / 21.19 MB, free: 3.379 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.0008239/0.0008239, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 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.8877/0.8877, allocations: 173.3 MB / 201.1 MB, free: 9.328 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.513e-06/1.513e-06, allocations: 0 / 268 MB, free: 6.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.442e-05/1.593e-05, allocations: 2.312 kB / 268 MB, free: 6.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01065/0.01066, allocations: 13.53 MB / 281.6 MB, free: 8.793 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006671/0.01733, allocations: 4.891 MB / 286.5 MB, free: 3.887 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.01847, allocations: 99.44 kB / 286.6 MB, free: 3.789 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001868/0.02034, allocations: 1.029 MB / 287.6 MB, free: 2.754 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002439/0.02278, allocations: 1.495 MB / 289.1 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.0241, allocations: 0.9767 MB / 290.1 MB, free: 280 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1106/0.1347, allocations: 4.476 MB / 294.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002189/0.1369, allocations: 1.797 MB / 296.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003907/0.1408, allocations: 3.2 MB / 299.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002937/0.1437, allocations: 2.084 MB / 301.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001064/0.1448, allocations: 0.5278 MB / 302.1 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001371/0.1461, allocations: 0.8923 MB / 303 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006843/0.1468, allocations: 1.394 MB / 304.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00156/0.1484, allocations: 1.562 MB / 306 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003409/0.1518, allocations: 3.896 MB / 309.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.1518, allocations: 1.844 kB / 309.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1518, allocations: 0 / 309.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001302/0.1519, allocations: 0 / 309.9 MB, free: 10.7 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.005938/0.1579, allocations: 5.222 MB / 315.1 MB, free: 7.395 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.1579, allocations: 12.92 kB / 315.1 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002331/0.1602, allocations: 1.331 MB / 316.5 MB, free: 6.059 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/0.1624, allocations: 2.58 MB / 319 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.134e-05/0.1625, allocations: 247.1 kB / 319.3 MB, free: 3.289 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00028/0.1627, allocations: 340 kB / 319.6 MB, free: 2.961 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002972/0.1657, allocations: 2.719 MB / 322.3 MB, free: 164 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.149e-05/0.1658, allocations: 7.891 kB / 322.3 MB, free: 156 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000178/0.1659, allocations: 135.8 kB / 322.5 MB, free: 24 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/0.1661, allocations: 155.6 kB / 322.6 MB, free: 15.87 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002381/0.1684, allocations: 1.287 MB / 323.9 MB, free: 14.58 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01065/0.1791, allocations: 11.18 MB / 335.1 MB, free: 3.422 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002968/0.1821, allocations: 2.224 MB / 337.3 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/0.1833, allocations: 0.9336 MB / 338.2 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003258/0.1865, allocations: 2.666 MB / 340.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.1866, allocations: 61.59 kB / 341 MB, free: 13.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=165): time 2.845e-06/0.1866, allocations: 0 / 341 MB, free: 13.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=185): time 0.007497/0.1941, allocations: 4.926 MB / 345.9 MB, free: 8.828 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.1941, allocations: 69.41 kB / 346 MB, free: 8.746 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.1958, allocations: 1.893 MB / 347.9 MB, free: 6.812 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.099e-05/0.1959, allocations: 61.3 kB / 347.9 MB, free: 6.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009027/0.1968, allocations: 1.787 MB / 349.7 MB, free: 4.945 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003664/0.1971, allocations: 0.6631 MB / 350.4 MB, free: 4.289 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000386/0.1975, allocations: 354.8 kB / 350.7 MB, free: 3.938 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.1976, allocations: 476.8 kB / 351.2 MB, free: 3.469 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005394/0.1981, allocations: 323.8 kB / 351.5 MB, free: 3.152 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008011/0.199, allocations: 0.9027 MB / 352.4 MB, free: 2.039 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001481/0.2004, allocations: 1.341 MB / 353.7 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.208e-06/0.2004, allocations: 4 kB / 353.7 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00243/0.2029, allocations: 1.855 MB / 355.6 MB, free: 14.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.2029, allocations: 8 kB / 355.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.2029, allocations: 15.94 kB / 355.6 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009925/0.2039, allocations: 488.5 kB / 356.1 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000876/0.2048, allocations: 428.7 kB / 356.5 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004944/0.2097, allocations: 6.372 MB / 362.9 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005603/0.2103, allocations: 83.92 kB / 363 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.2104, allocations: 75.98 kB / 363 MB, free: 7.129 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.0005336/0.2109, allocations: 261.4 kB / 363.3 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002891/0.2112, allocations: 310.6 kB / 363.6 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002212/0.2134, allocations: 1.689 MB / 365.3 MB, free: 4.895 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/0.2134, allocations: 20 kB / 365.3 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.2134, allocations: 12 kB / 365.3 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.2135, allocations: 7.969 kB / 365.3 MB, free: 4.855 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004954/0.2184, allocations: 4.332 MB / 369.7 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.2184, allocations: 0 / 369.7 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006282/0.219, allocations: 273 kB / 369.9 MB, free: 268 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/0.2201, allocations: 0.5302 MB / 370.5 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.379e-05/0.2202, allocations: 47.97 kB / 370.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006105/0.2263, allocations: 10.67 MB / 381.2 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.2263, allocations: 12.09 kB / 381.2 MB, free: 4.574 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.2291, allocations: 2.227 MB / 383.4 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004818/0.2296, allocations: 434.2 kB / 383.8 MB, free: 1.898 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.2297, allocations: 39.94 kB / 383.9 MB, free: 1.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/0.2302, allocations: 74.95 kB / 383.9 MB, free: 1.789 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002302/0.2304, allocations: 141.7 kB / 384.1 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/0.2305, allocations: 55.97 kB / 384.1 MB, free: 1.598 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009873/0.2315, allocations: 1.084 MB / 385.2 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2315, allocations: 4 kB / 385.2 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00129/0.2328, allocations: 0.6759 MB / 385.9 MB, free: 15.81 MB / 346.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.0008712/0.2336, allocations: 428.8 kB / 386.3 MB, free: 15.54 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002211/0.2359, allocations: 1.877 MB / 388.2 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2359, allocations: 4 kB / 388.2 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.2374, allocations: 1.667 MB / 389.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.2385, allocations: 0.4947 MB / 390.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009612/0.2481, allocations: 5.978 MB / 396.3 MB, free: 5.422 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/0.2492, allocations: 0.9468 MB / 397.3 MB, free: 4.453 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001313/0.2505, allocations: 385.6 kB / 397.7 MB, free: 4.074 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004634/0.251, allocations: 148.5 kB / 397.8 MB, free: 3.93 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/0.251, allocations: 0 / 397.8 MB, free: 3.93 MB / 346.7 MB Notification: Performance of Templates: time 0.04835/0.2993, allocations: 34.84 MB / 432.6 MB, free: 1.586 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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.544113251846284]