Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001373/0.001373, allocations: 84.66 kB / 20.95 MB, free: 3.449 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.001668/0.001668, allocations: 149.1 kB / 24.26 MB, free: 156 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.454/1.454, allocations: 173.4 MB / 200.8 MB, free: 9.305 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.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.581e-05/2.748e-05, allocations: 2.312 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01229/0.01232, allocations: 8.463 MB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00728/0.0196, allocations: 2.929 MB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001313/0.02091, allocations: 27.88 kB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002003/0.02292, allocations: 0.5664 MB / 279.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002148/0.02506, allocations: 0.6123 MB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001034/0.0261, allocations: 319.4 kB / 280.2 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003095/0.02919, allocations: 1.836 MB / 282.1 MB, free: 7.879 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.0302, allocations: 425.2 kB / 282.5 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002331/0.03253, allocations: 1.033 MB / 283.5 MB, free: 6.402 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001097/0.03363, allocations: 0.5296 MB / 284.1 MB, free: 5.871 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002461/0.03388, allocations: 160 kB / 284.2 MB, free: 5.715 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004277/0.0343, allocations: 203.9 kB / 284.4 MB, free: 5.516 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000329/0.03463, allocations: 338.7 kB / 284.7 MB, free: 5.184 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007504/0.03538, allocations: 0.5612 MB / 285.3 MB, free: 4.621 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00254/0.03792, allocations: 2.005 MB / 287.3 MB, free: 2.609 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.03793, allocations: 4 kB / 287.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.03793, allocations: 0 / 287.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.173e-05/0.03796, allocations: 3.938 kB / 287.3 MB, free: 2.602 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003711/0.04167, allocations: 1.743 MB / 289.1 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.04172, allocations: 8.922 kB / 289.1 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007861/0.0425, allocations: 295.9 kB / 289.4 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.113/0.1555, allocations: 0.7749 MB / 290.1 MB, free: 32.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.1556, allocations: 169.1 kB / 290.3 MB, free: 32.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/0.1558, allocations: 121.2 kB / 290.4 MB, free: 32.65 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001975/0.1578, allocations: 1.571 MB / 292 MB, free: 31.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/0.1578, allocations: 4.828 kB / 292 MB, free: 31.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-05/0.1579, allocations: 49.67 kB / 292 MB, free: 31.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.233e-05/0.1579, allocations: 26.56 kB / 292.1 MB, free: 31.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.1594, allocations: 0.7498 MB / 292.8 MB, free: 31.33 MB / 266.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005093/0.1645, allocations: 3.256 MB / 296.1 MB, free: 29.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.166, allocations: 0.5553 MB / 296.6 MB, free: 29.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004739/0.1665, allocations: 238 kB / 296.9 MB, free: 29.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.61e-05/0.1665, allocations: 14.44 kB / 296.9 MB, free: 29.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005855/0.1671, allocations: 321.3 kB / 297.2 MB, free: 29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.034e-06/0.1671, allocations: 0 / 297.2 MB, free: 29 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.004318/0.1714, allocations: 1.871 MB / 299.1 MB, free: 28.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.767e-05/0.1715, allocations: 474.7 kB / 299.5 MB, free: 27.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001195/0.1727, allocations: 0.9688 MB / 300.5 MB, free: 27.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.359e-05/0.1728, allocations: 43.98 kB / 300.5 MB, free: 27.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003593/0.1731, allocations: 0.6642 MB / 301.2 MB, free: 26.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.1733, allocations: 242.5 kB / 301.4 MB, free: 26.45 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002438/0.1735, allocations: 194.7 kB / 301.6 MB, free: 26.35 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.31e-05/0.1736, allocations: 348.4 kB / 302 MB, free: 26.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005167/0.1741, allocations: 303.3 kB / 302.3 MB, free: 25.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007665/0.1748, allocations: 1.165 MB / 303.4 MB, free: 24.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.1759, allocations: 0.9446 MB / 304.4 MB, free: 23.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.176, allocations: 6.422 kB / 304.4 MB, free: 23.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001864/0.1778, allocations: 1.235 MB / 305.6 MB, free: 23.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.091e-05/0.1779, allocations: 64.64 kB / 305.7 MB, free: 23.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.1779, allocations: 11.81 kB / 305.7 MB, free: 23.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005389/0.1784, allocations: 168.9 kB / 305.9 MB, free: 23.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006318/0.179, allocations: 207 kB / 306.1 MB, free: 23.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00311/0.1822, allocations: 3.625 MB / 309.7 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008237/0.183, allocations: 64.08 kB / 309.7 MB, free: 19.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.383e-05/0.183, allocations: 48 kB / 309.8 MB, free: 19.69 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000366/0.1834, allocations: 293.6 kB / 310.1 MB, free: 19.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.1835, allocations: 135.3 kB / 310.2 MB, free: 19.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.1848, allocations: 0.6851 MB / 310.9 MB, free: 18.56 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1848, allocations: 11.98 kB / 310.9 MB, free: 18.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1848, allocations: 0 / 310.9 MB, free: 18.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001086/0.1859, allocations: 0.955 MB / 311.9 MB, free: 17.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.1881, allocations: 1.513 MB / 313.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1881, allocations: 0 / 313.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004422/0.1885, allocations: 103.9 kB / 313.5 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004085/0.1889, allocations: 137.7 kB / 313.6 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.1889, allocations: 16 kB / 313.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002373/0.1913, allocations: 3.323 MB / 317 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1913, allocations: 4 kB / 317 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/0.1928, allocations: 1.063 MB / 318 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002921/0.1931, allocations: 163.2 kB / 318.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.1932, allocations: 23.98 kB / 318.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005885/0.1938, allocations: 35.97 kB / 318.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.1939, allocations: 52.41 kB / 318.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.184e-05/0.1939, allocations: 19.98 kB / 318.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006515/0.1946, allocations: 0.6384 MB / 318.9 MB, free: 10.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1946, allocations: 0 / 318.9 MB, free: 10.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000958/0.1955, allocations: 307.9 kB / 319.2 MB, free: 9.805 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001738/0.1957, allocations: 135.1 kB / 319.4 MB, free: 9.664 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.1973, allocations: 1.121 MB / 320.5 MB, free: 8.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1973, allocations: 0 / 320.5 MB, free: 8.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007373/0.198, allocations: 0.5405 MB / 321 MB, free: 7.914 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.1991, allocations: 294.2 kB / 321.3 MB, free: 7.645 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002565/0.2017, allocations: 2.114 MB / 323.4 MB, free: 5.488 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.202, allocations: 0.4969 MB / 323.9 MB, free: 4.957 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004071/0.2024, allocations: 128.7 kB / 324.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.2025, allocations: 76.48 kB / 324.1 MB, free: 4.754 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.2025, allocations: 0 / 324.1 MB, free: 4.754 MB / 266.7 MB Notification: Performance of Templates: time 0.02915/0.2317, allocations: 17.07 MB / 341.2 MB, free: 4.039 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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: 8.164074280997738]