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.001894/0.001894, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001882/0.001882, allocations: 153.1 kB / 24.27 MB, free: 168 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 1.522/1.522, allocations: 173.3 MB / 200.8 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 178] 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.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..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.1.|aimc.is.2.|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.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..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.1.|aimc.is.2.|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.864e-06/1.864e-06, allocations: 0 / 267.4 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.505e-05/2.691e-05, allocations: 2.312 kB / 267.4 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0272/0.02722, allocations: 13.4 MB / 280.8 MB, free: 9.234 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.04104, allocations: 4.879 MB / 285.7 MB, free: 4.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002527/0.04356, allocations: 95.44 kB / 285.7 MB, free: 4.246 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00409/0.04765, allocations: 1.036 MB / 286.8 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006395/0.05405, allocations: 1.494 MB / 288.3 MB, free: 1.699 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003807/0.05786, allocations: 0.9613 MB / 289.2 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1335/0.1913, allocations: 4.477 MB / 293.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00249/0.1938, allocations: 1.795 MB / 295.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004465/0.1983, allocations: 3.023 MB / 298.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003347/0.2016, allocations: 2.12 MB / 300.7 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008668/0.2025, allocations: 0.5323 MB / 301.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.2043, allocations: 0.8963 MB / 302.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008938/0.2052, allocations: 1.42 MB / 303.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001708/0.2069, allocations: 1.587 MB / 305.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005765/0.2127, allocations: 7.448 MB / 312.5 MB, free: 8.586 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.706e-06/0.2127, allocations: 0 / 312.5 MB, free: 8.586 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2127, allocations: 0 / 312.5 MB, free: 8.586 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001127/0.2128, allocations: 0 / 312.5 MB, free: 8.586 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.01079/0.2236, allocations: 5.672 MB / 318.2 MB, free: 3.922 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.2236, allocations: 8.922 kB / 318.2 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004307/0.2279, allocations: 1.323 MB / 319.5 MB, free: 2.594 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004231/0.2321, allocations: 2.619 MB / 322.2 MB, free: 32 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002472/0.2324, allocations: 254.5 kB / 322.4 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006358/0.233, allocations: 347.6 kB / 322.7 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009502/0.2425, allocations: 4.83 MB / 327.6 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-05/0.2426, allocations: 7.938 kB / 327.6 MB, free: 10.53 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003612/0.243, allocations: 138.4 kB / 327.7 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002129/0.2432, allocations: 154.7 kB / 327.9 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007297/0.2505, allocations: 3.461 MB / 331.3 MB, free: 6.777 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03746/0.2879, allocations: 22.03 MB / 353.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006734/0.2947, allocations: 2.756 MB / 356.1 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003082/0.2978, allocations: 1.437 MB / 357.5 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008763/0.3065, allocations: 3.673 MB / 361.2 MB, free: 8.195 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.604e-05/0.3066, allocations: 58.36 kB / 361.3 MB, free: 8.129 MB / 314.7 MB Notification: Performance of pre-optimization done (n=165): time 5.351e-06/0.3066, allocations: 0 / 361.3 MB, free: 8.129 MB / 314.7 MB Notification: Performance of matching and sorting (n=185): time 0.01779/0.3244, allocations: 6.679 MB / 368 MB, free: 1.449 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.3245, allocations: 73.39 kB / 368 MB, free: 1.363 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004227/0.3287, allocations: 2.604 MB / 370.6 MB, free: 14.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002598/0.3289, allocations: 57.7 kB / 370.7 MB, free: 14.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001916/0.3309, allocations: 1.897 MB / 372.6 MB, free: 12.74 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000908/0.3318, allocations: 0.7296 MB / 373.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007961/0.3326, allocations: 433.2 kB / 373.7 MB, free: 11.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002438/0.3328, allocations: 477.6 kB / 374.2 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00155/0.3344, allocations: 0.7184 MB / 374.9 MB, free: 10.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002212/0.3366, allocations: 1.376 MB / 376.3 MB, free: 8.824 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003989/0.3406, allocations: 2.319 MB / 378.6 MB, free: 6.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.3406, allocations: 0 / 378.6 MB, free: 6.352 MB / 330.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006009/0.3466, allocations: 2.771 MB / 381.4 MB, free: 3.652 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.3466, allocations: 12 kB / 381.4 MB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/0.3466, allocations: 11.94 kB / 381.4 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002101/0.3487, allocations: 0.6375 MB / 382.1 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/0.3506, allocations: 426.8 kB / 382.5 MB, free: 2.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01148/0.3621, allocations: 8.098 MB / 390.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/0.3637, allocations: 90.94 kB / 390.7 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000192/0.3639, allocations: 75.98 kB / 390.7 MB, free: 10.13 MB / 346.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.001928/0.3658, allocations: 0.9818 MB / 391.7 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006337/0.3665, allocations: 302.5 kB / 392 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005479/0.3719, allocations: 2.487 MB / 394.5 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.408e-05/0.372, allocations: 20 kB / 394.5 MB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/0.372, allocations: 8 kB / 394.5 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/0.372, allocations: 7.969 kB / 394.5 MB, free: 6.344 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/0.3851, allocations: 6.247 MB / 400.8 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.3851, allocations: 4 kB / 400.8 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/0.3867, allocations: 266.3 kB / 401 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002467/0.3892, allocations: 0.7136 MB / 401.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001477/0.3893, allocations: 43.98 kB / 401.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01589/0.4052, allocations: 12.69 MB / 414.5 MB, free: 1.957 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4052, allocations: 0 / 414.5 MB, free: 1.957 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007999/0.4132, allocations: 3.618 MB / 418.1 MB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/0.4147, allocations: 450.2 kB / 418.5 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003183/0.415, allocations: 40 kB / 418.6 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.4161, allocations: 86.92 kB / 418.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000413/0.4165, allocations: 144 kB / 418.8 MB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/0.4167, allocations: 55.97 kB / 418.9 MB, free: 13.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002695/0.4194, allocations: 1.525 MB / 420.4 MB, free: 12.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4194, allocations: 0 / 420.4 MB, free: 12.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002566/0.4219, allocations: 0.6913 MB / 421.1 MB, free: 11.32 MB / 378.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.002793/0.4247, allocations: 477.7 kB / 421.5 MB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005896/0.4306, allocations: 2.676 MB / 424.2 MB, free: 8.363 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.4306, allocations: 4 kB / 424.2 MB, free: 8.359 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00359/0.4342, allocations: 2.047 MB / 426.3 MB, free: 6.273 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002654/0.4369, allocations: 0.497 MB / 426.8 MB, free: 5.773 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.123/0.5599, allocations: 6.534 MB / 433.3 MB, free: 117.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002463/0.5624, allocations: 1.935 MB / 435.2 MB, free: 117.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001584/0.564, allocations: 412.8 kB / 435.6 MB, free: 117.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004906/0.5645, allocations: 159 kB / 435.8 MB, free: 117.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.503e-06/0.5645, allocations: 0 / 435.8 MB, free: 117.2 MB / 378.7 MB Notification: Performance of Templates: time 0.05147/0.6159, allocations: 35.17 MB / 471 MB, free: 98.25 MB / 378.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 7.542962796986103]