Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.001021/0.001021, allocations: 72.08 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.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.001063/0.001063, allocations: 142.3 kB / 24.97 MB, free: 8.324 MB / 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.9603/0.9603, allocations: 173.3 MB / 201.5 MB, free: 9.34 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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.589e-05/2.759e-05, allocations: 6.25 kB / 268.1 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01151/0.01154, allocations: 9.559 MB / 277.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005844/0.01738, allocations: 3.502 MB / 281.2 MB, free: 9.578 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001342/0.01873, allocations: 59.62 kB / 281.2 MB, free: 9.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.02024, allocations: 0.652 MB / 281.9 MB, free: 8.863 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001954/0.02219, allocations: 0.912 MB / 282.8 MB, free: 7.945 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008188/0.02301, allocations: 471 kB / 283.3 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002445/0.02546, allocations: 2.727 MB / 286 MB, free: 4.742 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001204/0.02666, allocations: 1.081 MB / 287.1 MB, free: 3.602 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001883/0.02854, allocations: 1.766 MB / 288.8 MB, free: 1.832 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001669/0.03021, allocations: 1.415 MB / 290.2 MB, free: 424 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005133/0.03072, allocations: 304 kB / 290.5 MB, free: 120 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1118/0.1425, allocations: 0.5459 MB / 291.1 MB, free: 18.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001155/0.1436, allocations: 1.078 MB / 292.2 MB, free: 18.62 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001911/0.1456, allocations: 1.004 MB / 293.2 MB, free: 18.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003489/0.149, allocations: 2.492 MB / 295.7 MB, free: 18.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1491, allocations: 0 / 295.7 MB, free: 18.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1491, allocations: 4.469 kB / 295.7 MB, free: 18.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001288/0.1492, allocations: 1.188 kB / 295.7 MB, free: 18.42 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.005304/0.1545, allocations: 3.332 MB / 299 MB, free: 16.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.1545, allocations: 9.797 kB / 299 MB, free: 16.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008942/0.1554, allocations: 0.4979 MB / 299.5 MB, free: 16.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002014/0.1574, allocations: 1.535 MB / 301 MB, free: 16.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.198e-05/0.1575, allocations: 146.7 kB / 301.2 MB, free: 16.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002604/0.1578, allocations: 212.5 kB / 301.4 MB, free: 16.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002484/0.1603, allocations: 1.665 MB / 303.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.572e-05/0.1603, allocations: 12.94 kB / 303.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.1604, allocations: 89.78 kB / 303.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.481e-05/0.1605, allocations: 95.17 kB / 303.2 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.1622, allocations: 0.7664 MB / 304 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007827/0.17, allocations: 6.708 MB / 310.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.1712, allocations: 0.7725 MB / 311.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007979/0.172, allocations: 0.5736 MB / 312.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001768/0.1722, allocations: 57.14 kB / 312.1 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.1722, allocations: 46.69 kB / 312.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=116): time 2.875e-06/0.1722, allocations: 7.562 kB / 312.2 MB, free: 11.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=132): time 0.006711/0.1789, allocations: 3.679 MB / 315.9 MB, free: 9.008 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/0.179, allocations: 64.72 kB / 315.9 MB, free: 8.934 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001692/0.1806, allocations: 1.633 MB / 317.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.1808, allocations: 45.7 kB / 317.6 MB, free: 7.234 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004566/0.1812, allocations: 1.238 MB / 318.8 MB, free: 5.984 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002373/0.1814, allocations: 477.3 kB / 319.3 MB, free: 5.523 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002494/0.1817, allocations: 252 kB / 319.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.832e-05/0.1818, allocations: 0.5394 MB / 320.1 MB, free: 4.723 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.1822, allocations: 241 kB / 320.3 MB, free: 4.488 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004957/0.1827, allocations: 0.5852 MB / 320.9 MB, free: 3.781 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009289/0.1836, allocations: 0.9207 MB / 321.8 MB, free: 2.766 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.1836, allocations: 4 kB / 321.8 MB, free: 2.762 MB / 266.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.002209/0.1858, allocations: 1.513 MB / 323.3 MB, free: 1.293 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1858, allocations: 11.94 kB / 323.4 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.1859, allocations: 4 kB / 323.4 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.1871, allocations: 0.5828 MB / 323.9 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005336/0.1876, allocations: 262.2 kB / 324.2 MB, free: 468 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005402/0.193, allocations: 6.462 MB / 330.7 MB, free: 9.793 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009214/0.194, allocations: 83.91 kB / 330.7 MB, free: 9.711 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.996e-05/0.1941, allocations: 51.98 kB / 330.8 MB, free: 9.66 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * 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%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008555/0.1949, allocations: 230.7 kB / 331 MB, free: 9.438 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003384/0.1953, allocations: 238.7 kB / 331.3 MB, free: 9.203 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.1972, allocations: 1.331 MB / 332.6 MB, free: 7.875 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/0.1972, allocations: 19.36 kB / 332.6 MB, free: 7.859 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1972, allocations: 8 kB / 332.6 MB, free: 7.852 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.1972, allocations: 7.969 kB / 332.6 MB, free: 7.844 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004831/0.202, allocations: 3.247 MB / 335.9 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.2021, allocations: 2.844 kB / 335.9 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005387/0.2026, allocations: 211.2 kB / 336.1 MB, free: 4.359 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001342/0.2039, allocations: 462.5 kB / 336.5 MB, free: 3.898 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.293e-05/0.204, allocations: 39.97 kB / 336.6 MB, free: 3.859 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004921/0.2089, allocations: 7.517 MB / 344.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2089, allocations: 4 kB / 344.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002588/0.2115, allocations: 1.794 MB / 345.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005872/0.2121, allocations: 338.5 kB / 346.2 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.2123, allocations: 28 kB / 346.2 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004625/0.2127, allocations: 75.91 kB / 346.3 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.213, allocations: 112.4 kB / 346.4 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.3e-05/0.213, allocations: 43.98 kB / 346.5 MB, free: 9.613 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001185/0.2142, allocations: 0.977 MB / 347.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2142, allocations: 2.734 kB / 347.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001587/0.2158, allocations: 0.5227 MB / 348 MB, free: 8.125 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001005/0.2168, allocations: 443 kB / 348.4 MB, free: 7.836 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.2189, allocations: 1.53 MB / 349.9 MB, free: 6.305 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2189, allocations: 5.25 kB / 349.9 MB, free: 6.301 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/0.2203, allocations: 1.207 MB / 351.1 MB, free: 5.062 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.2216, allocations: 418.2 kB / 351.5 MB, free: 4.664 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00618/0.2278, allocations: 4.256 MB / 355.8 MB, free: 344 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005731/0.2284, allocations: 0.6486 MB / 356.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008207/0.2292, allocations: 298.6 kB / 356.7 MB, free: 15.36 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/0.2295, allocations: 132.5 kB / 356.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of SimCode: time 1.703e-06/0.2295, allocations: 2.344 kB / 356.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of Templates: time 0.0391/0.2686, allocations: 29.62 MB / 386.5 MB, free: 1.98 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/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.4089954029768705]