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.001329/0.001329, allocations: 71.77 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.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.001606/0.001606, allocations: 160.5 kB / 24.99 MB, free: 9.32 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.9761/0.9761, allocations: 177.1 MB / 205.3 MB, free: 5.582 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.192e-06/1.192e-06, allocations: 0 / 273.1 MB, free: 1.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.407e-05/1.526e-05, allocations: 2.312 kB / 273.1 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01083/0.01084, allocations: 14.06 MB / 287.2 MB, free: 3.625 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1047/0.1156, allocations: 5.275 MB / 292.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0019/0.1175, allocations: 101.6 kB / 292.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00209/0.1195, allocations: 1.051 MB / 293.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00281/0.1224, allocations: 1.506 MB / 295.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001704/0.1241, allocations: 1.019 MB / 296.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003854/0.1279, allocations: 4.565 MB / 300.7 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001845/0.1298, allocations: 1.806 MB / 302.5 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002726/0.1325, allocations: 3.035 MB / 305.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001706/0.1342, allocations: 2.13 MB / 307.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003813/0.1346, allocations: 0.532 MB / 308.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009329/0.1355, allocations: 0.9079 MB / 309.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006183/0.1361, allocations: 1.429 MB / 310.5 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009498/0.1371, allocations: 1.591 MB / 312.1 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002435/0.1395, allocations: 3.953 MB / 316.1 MB, free: 5.172 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1395, allocations: 0 / 316.1 MB, free: 5.172 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1395, allocations: 0 / 316.1 MB, free: 5.172 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.575e-05/0.1395, allocations: 0 / 316.1 MB, free: 5.172 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.005367/0.1449, allocations: 5.302 MB / 321.4 MB, free: 15.83 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.1449, allocations: 8.031 kB / 321.4 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003042/0.148, allocations: 1.326 MB / 322.7 MB, free: 14.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003266/0.1513, allocations: 2.617 MB / 325.3 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.1514, allocations: 251.5 kB / 325.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005073/0.1519, allocations: 336.5 kB / 325.9 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004702/0.1567, allocations: 2.735 MB / 328.6 MB, free: 8.555 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.43e-05/0.1567, allocations: 3.953 kB / 328.6 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002394/0.157, allocations: 132 kB / 328.8 MB, free: 8.422 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001347/0.1571, allocations: 154.7 kB / 328.9 MB, free: 8.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002972/0.1601, allocations: 1.299 MB / 330.2 MB, free: 6.969 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01353/0.1736, allocations: 11.25 MB / 341.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003478/0.1771, allocations: 2.223 MB / 343.7 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.1784, allocations: 0.9366 MB / 344.6 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004215/0.1827, allocations: 2.72 MB / 347.3 MB, free: 6.055 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/0.1827, allocations: 58.62 kB / 347.4 MB, free: 5.984 MB / 298.7 MB Notification: Performance of pre-optimization done (n=165): time 3.376e-06/0.1827, allocations: 0 / 347.4 MB, free: 5.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=185): time 0.008525/0.1912, allocations: 4.952 MB / 352.4 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.1913, allocations: 77.39 kB / 352.4 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/0.1933, allocations: 1.982 MB / 354.4 MB, free: 14.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.897e-05/0.1934, allocations: 55.11 kB / 354.5 MB, free: 14.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009019/0.1943, allocations: 1.792 MB / 356.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003969/0.1947, allocations: 0.6678 MB / 356.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003833/0.1951, allocations: 367.8 kB / 357.3 MB, free: 12 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.756e-05/0.1952, allocations: 476.8 kB / 357.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000561/0.1957, allocations: 323.8 kB / 358.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008239/0.1965, allocations: 0.9004 MB / 359 MB, free: 10.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.198, allocations: 1.353 MB / 360.3 MB, free: 8.547 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.198, allocations: 4 kB / 360.3 MB, free: 8.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.002616/0.2006, allocations: 1.854 MB / 362.2 MB, free: 6.672 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.2007, allocations: 11.94 kB / 362.2 MB, free: 6.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.2007, allocations: 12 kB / 362.2 MB, free: 6.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.2018, allocations: 494.9 kB / 362.7 MB, free: 6.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009235/0.2027, allocations: 419.3 kB / 363.1 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005328/0.208, allocations: 6.377 MB / 369.5 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.2091, allocations: 79.91 kB / 369.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/0.2093, allocations: 75.98 kB / 369.6 MB, free: 14.99 MB / 330.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.0008279/0.2101, allocations: 268.1 kB / 369.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004079/0.2105, allocations: 310.4 kB / 370.2 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0025/0.213, allocations: 1.696 MB / 371.9 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/0.213, allocations: 24 kB / 371.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.213, allocations: 8 kB / 371.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.2131, allocations: 15.89 kB / 371.9 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005734/0.2188, allocations: 4.371 MB / 376.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.2188, allocations: 4 kB / 376.3 MB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006866/0.2195, allocations: 271.6 kB / 376.6 MB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.2207, allocations: 0.5464 MB / 377.1 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.2208, allocations: 47.97 kB / 377.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006635/0.2274, allocations: 10.64 MB / 387.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.2274, allocations: 3.984 kB / 387.8 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003265/0.2307, allocations: 2.247 MB / 390 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006763/0.2313, allocations: 450.2 kB / 390.5 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002112/0.2316, allocations: 39.94 kB / 390.5 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005493/0.2321, allocations: 75.94 kB / 390.6 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002612/0.2324, allocations: 149.7 kB / 390.7 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.591e-05/0.2324, allocations: 55.97 kB / 390.8 MB, free: 9.207 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001287/0.2337, allocations: 1.156 MB / 392 MB, free: 8.035 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2337, allocations: 0 / 392 MB, free: 8.035 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001601/0.2353, allocations: 0.6874 MB / 392.6 MB, free: 7.348 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.0009543/0.2363, allocations: 437.4 kB / 393.1 MB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002484/0.2388, allocations: 1.871 MB / 394.9 MB, free: 5.152 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.2388, allocations: 4 kB / 394.9 MB, free: 5.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.2403, allocations: 1.642 MB / 396.6 MB, free: 3.434 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.2417, allocations: 0.5166 MB / 397.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007991/0.2496, allocations: 6.037 MB / 403.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009847/0.2506, allocations: 0.9508 MB / 404.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001091/0.2517, allocations: 415.1 kB / 404.5 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.2521, allocations: 168.5 kB / 404.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of SimCode: time 1.914e-06/0.2521, allocations: 0 / 404.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of Templates: time 0.1417/0.3938, allocations: 35.64 MB / 440.3 MB, free: 112.1 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.899400843074545]