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.001355/0.001355, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001544/0.001544, allocations: 164.4 kB / 24.82 MB, free: 9.266 MB / 18.57 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.9539/0.9539, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.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.443e-06/1.443e-06, allocations: 0 / 273.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.492e-05/2.636e-05, allocations: 5.125 kB / 273.4 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01082/0.01085, allocations: 13.64 MB / 287.1 MB, free: 3.516 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1133/0.1242, allocations: 5.24 MB / 292.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002183/0.1264, allocations: 102.6 kB / 292.4 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002465/0.1288, allocations: 1.057 MB / 293.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003104/0.1319, allocations: 1.51 MB / 295 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001711/0.1336, allocations: 1.008 MB / 296 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003897/0.1375, allocations: 4.569 MB / 300.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002195/0.1397, allocations: 1.8 MB / 302.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003513/0.1433, allocations: 3.227 MB / 305.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002093/0.1453, allocations: 2.103 MB / 307.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005461/0.1459, allocations: 0.5298 MB / 308.2 MB, free: 10.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001214/0.1471, allocations: 0.8983 MB / 309.1 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007392/0.1478, allocations: 1.403 MB / 310.5 MB, free: 9.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.149, allocations: 1.564 MB / 312.1 MB, free: 8.461 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002905/0.1519, allocations: 3.925 MB / 316 MB, free: 5.016 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.1519, allocations: 0 / 316 MB, free: 5.016 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1519, allocations: 0 / 316 MB, free: 5.016 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.903e-05/0.152, allocations: 4 kB / 316 MB, free: 5.012 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.006233/0.1582, allocations: 5.164 MB / 321.2 MB, free: 24 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.1582, allocations: 8.031 kB / 321.2 MB, free: 16 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003645/0.1619, allocations: 1.255 MB / 322.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00308/0.165, allocations: 2.524 MB / 325 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.1651, allocations: 253.1 kB / 325.2 MB, free: 12.03 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006905/0.1658, allocations: 338.8 kB / 325.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003563/0.1694, allocations: 2.507 MB / 328.1 MB, free: 9.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.999e-05/0.1695, allocations: 7.422 kB / 328.1 MB, free: 9.246 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002507/0.1697, allocations: 135.4 kB / 328.2 MB, free: 9.117 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000146/0.1699, allocations: 158.6 kB / 328.4 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.1718, allocations: 0.9974 MB / 329.4 MB, free: 7.961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01322/0.185, allocations: 11.14 MB / 340.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002583/0.1876, allocations: 2.039 MB / 342.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009663/0.1886, allocations: 0.8268 MB / 343.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003883/0.1925, allocations: 2.649 MB / 346 MB, free: 8.059 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.1925, allocations: 46.7 kB / 346.1 MB, free: 8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=165): time 4.799e-06/0.1925, allocations: 0 / 346.1 MB, free: 8 MB / 298.7 MB Notification: Performance of matching and sorting (n=185): time 0.007914/0.2004, allocations: 4.173 MB / 350.2 MB, free: 3.824 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.2005, allocations: 77.34 kB / 350.3 MB, free: 3.734 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/0.2021, allocations: 1.886 MB / 352.2 MB, free: 2.102 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.465e-05/0.2022, allocations: 53.7 kB / 352.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009255/0.2031, allocations: 1.81 MB / 354.1 MB, free: 312 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000364/0.2035, allocations: 0.6772 MB / 354.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003755/0.2038, allocations: 364.7 kB / 355.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.2039, allocations: 476.8 kB / 355.6 MB, free: 14.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.2043, allocations: 243.8 kB / 355.8 MB, free: 14.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006345/0.2049, allocations: 0.8335 MB / 356.6 MB, free: 13.63 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.206, allocations: 1.219 MB / 357.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.206, allocations: 0 / 357.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.002081/0.2081, allocations: 1.683 MB / 359.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.2081, allocations: 14.5 kB / 359.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.2081, allocations: 8 kB / 359.5 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.2092, allocations: 480.3 kB / 360 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008575/0.21, allocations: 399.5 kB / 360.4 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004516/0.2145, allocations: 6.199 MB / 366.6 MB, free: 3.352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008439/0.2154, allocations: 56 kB / 366.7 MB, free: 3.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.2155, allocations: 67.91 kB / 366.7 MB, free: 3.23 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.0007198/0.2162, allocations: 270.7 kB / 367 MB, free: 2.957 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003567/0.2166, allocations: 306.4 kB / 367.3 MB, free: 2.656 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.2185, allocations: 1.536 MB / 368.8 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.172e-05/0.2185, allocations: 20 kB / 368.8 MB, free: 1.078 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.2186, allocations: 8 kB / 368.9 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.2186, allocations: 15.95 kB / 368.9 MB, free: 1.055 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004509/0.2231, allocations: 3.571 MB / 372.4 MB, free: 13.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.2231, allocations: 4 kB / 372.4 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006101/0.2237, allocations: 255.7 kB / 372.7 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/0.2247, allocations: 0.5285 MB / 373.2 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.488e-05/0.2248, allocations: 39.98 kB / 373.3 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005795/0.2306, allocations: 10.39 MB / 383.7 MB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2306, allocations: 0 / 383.7 MB, free: 2.129 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002711/0.2333, allocations: 2.015 MB / 385.7 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006584/0.2339, allocations: 418.2 kB / 386.1 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001848/0.2341, allocations: 35.98 kB / 386.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005057/0.2346, allocations: 59.92 kB / 386.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/0.2349, allocations: 145.7 kB / 386.3 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.791e-05/0.235, allocations: 39.98 kB / 386.3 MB, free: 15.37 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009016/0.2359, allocations: 1.011 MB / 387.4 MB, free: 14.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2359, allocations: 0 / 387.4 MB, free: 14.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001719/0.2376, allocations: 0.6835 MB / 388 MB, free: 13.66 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.0009844/0.2386, allocations: 435.2 kB / 388.5 MB, free: 13.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002197/0.2408, allocations: 1.74 MB / 390.2 MB, free: 11.58 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.2408, allocations: 4 kB / 390.2 MB, free: 11.57 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00138/0.2421, allocations: 1.568 MB / 391.8 MB, free: 9.934 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.2436, allocations: 0.4993 MB / 392.3 MB, free: 9.438 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.2539, allocations: 5.92 MB / 398.2 MB, free: 3.445 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.255, allocations: 0.954 MB / 399.2 MB, free: 2.469 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009119/0.2559, allocations: 298 kB / 399.4 MB, free: 2.176 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008344/0.2567, allocations: 0.5487 MB / 400 MB, free: 1.625 MB / 346.7 MB Notification: Performance of SimCode: time 1.472e-06/0.2567, allocations: 0 / 400 MB, free: 1.625 MB / 346.7 MB Notification: Performance of Templates: time 0.1421/0.3988, allocations: 36.1 MB / 436.1 MB, free: 106.4 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 4.561701032333076]