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.001451/0.001451, allocations: 88.62 kB / 20.95 MB, free: 3.473 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.001453/0.001453, allocations: 145.5 kB / 24.25 MB, free: 180 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.44/1.44, allocations: 173.4 MB / 200.8 MB, free: 9.297 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.754e-06/1.754e-06, allocations: 0 / 267.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.886e-05/3.062e-05, allocations: 2.312 kB / 267.3 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01266/0.01269, allocations: 8.455 MB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006433/0.01912, allocations: 2.929 MB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001132/0.02026, allocations: 31.88 kB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001859/0.02212, allocations: 0.5626 MB / 279.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001746/0.02386, allocations: 0.6122 MB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007209/0.02458, allocations: 323.4 kB / 280.2 MB, free: 9.719 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002447/0.02703, allocations: 1.836 MB / 282.1 MB, free: 7.875 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007387/0.02777, allocations: 425.3 kB / 282.5 MB, free: 7.434 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001466/0.02924, allocations: 1.029 MB / 283.5 MB, free: 6.402 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009426/0.03018, allocations: 0.5413 MB / 284.1 MB, free: 5.859 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002525/0.03043, allocations: 160 kB / 284.2 MB, free: 5.703 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004163/0.03085, allocations: 195.9 kB / 284.4 MB, free: 5.512 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003361/0.03118, allocations: 338.7 kB / 284.7 MB, free: 5.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007243/0.03191, allocations: 0.5573 MB / 285.3 MB, free: 4.621 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002572/0.03448, allocations: 2.009 MB / 287.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.03448, allocations: 0 / 287.3 MB, free: 2.605 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.03449, allocations: 4 kB / 287.3 MB, free: 2.602 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.29e-05/0.03451, allocations: 0 / 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.003834/0.03834, allocations: 1.751 MB / 289.1 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.03839, allocations: 12.92 kB / 289.1 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007302/0.03912, allocations: 283.9 kB / 289.4 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09665/0.1358, allocations: 0.7844 MB / 290.1 MB, free: 33.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.1359, allocations: 165.1 kB / 290.3 MB, free: 32.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/0.1361, allocations: 121.8 kB / 290.4 MB, free: 32.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/0.1381, allocations: 1.566 MB / 292 MB, free: 31.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.382e-05/0.1382, allocations: 8.188 kB / 292 MB, free: 31.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.1383, allocations: 44.28 kB / 292 MB, free: 31.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.597e-05/0.1383, allocations: 28.38 kB / 292.1 MB, free: 31.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/0.1399, allocations: 0.7552 MB / 292.8 MB, free: 31.63 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.005572/0.1454, allocations: 3.253 MB / 296.1 MB, free: 29.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.147, allocations: 0.5469 MB / 296.6 MB, free: 29.51 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005184/0.1475, allocations: 243.6 kB / 296.9 MB, free: 29.42 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.128e-05/0.1476, allocations: 15.12 kB / 296.9 MB, free: 29.42 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006246/0.1482, allocations: 323.2 kB / 297.2 MB, free: 29.26 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.475e-06/0.1482, allocations: 1.5 kB / 297.2 MB, free: 29.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.004627/0.1528, allocations: 1.872 MB / 299.1 MB, free: 28.36 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.099e-05/0.1529, allocations: 476.7 kB / 299.5 MB, free: 27.8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001282/0.1542, allocations: 0.9646 MB / 300.5 MB, free: 27.37 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.1543, allocations: 43.86 kB / 300.5 MB, free: 27.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003826/0.1547, allocations: 0.6704 MB / 301.2 MB, free: 26.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.1548, allocations: 240.2 kB / 301.4 MB, free: 26.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.1551, allocations: 195.5 kB / 301.6 MB, free: 26.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.604e-05/0.1551, allocations: 347.4 kB / 302 MB, free: 26.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005421/0.1557, allocations: 298.2 kB / 302.3 MB, free: 26.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007917/0.1565, allocations: 1.169 MB / 303.4 MB, free: 24.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.1576, allocations: 0.9421 MB / 304.4 MB, free: 24.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.1576, allocations: 4.125 kB / 304.4 MB, free: 24.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002025/0.1597, allocations: 1.229 MB / 305.6 MB, free: 23.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.1597, allocations: 68.66 kB / 305.7 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.1597, allocations: 19.92 kB / 305.7 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005811/0.1603, allocations: 164.8 kB / 305.9 MB, free: 23.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000624/0.1609, allocations: 200.5 kB / 306.1 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003237/0.1642, allocations: 3.632 MB / 309.7 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008613/0.165, allocations: 64.02 kB / 309.7 MB, free: 19.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/0.1651, allocations: 48 kB / 309.8 MB, free: 19.91 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.0003867/0.1655, allocations: 292.1 kB / 310.1 MB, free: 19.62 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.1656, allocations: 143.2 kB / 310.2 MB, free: 19.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.1669, allocations: 0.6851 MB / 310.9 MB, free: 18.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.1669, allocations: 8 kB / 310.9 MB, free: 18.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1669, allocations: 3.938 kB / 310.9 MB, free: 18.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001154/0.1681, allocations: 0.9549 MB / 311.9 MB, free: 17.71 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.1703, allocations: 1.514 MB / 313.4 MB, free: 16.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.1703, allocations: 4 kB / 313.4 MB, free: 16.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.1708, allocations: 108.1 kB / 313.5 MB, free: 16.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004186/0.1712, allocations: 126.6 kB / 313.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-05/0.1712, allocations: 19.98 kB / 313.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002457/0.1737, allocations: 3.318 MB / 317 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1737, allocations: 4.031 kB / 317 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.1753, allocations: 1.048 MB / 318 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000331/0.1756, allocations: 167.2 kB / 318.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001313/0.1757, allocations: 24.08 kB / 318.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005974/0.1763, allocations: 39.97 kB / 318.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.1765, allocations: 66.8 kB / 318.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.1765, allocations: 20 kB / 318.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007005/0.1772, allocations: 0.6306 MB / 318.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1772, allocations: 0 / 318.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009924/0.1782, allocations: 304 kB / 319.2 MB, free: 10.04 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.0001937/0.1784, allocations: 137.5 kB / 319.4 MB, free: 9.895 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.18, allocations: 1.122 MB / 320.5 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.18, allocations: 4 kB / 320.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007623/0.1808, allocations: 0.5308 MB / 321 MB, free: 8.148 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.1819, allocations: 296.6 kB / 321.3 MB, free: 7.875 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.1846, allocations: 2.115 MB / 323.4 MB, free: 5.719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.185, allocations: 0.493 MB / 323.9 MB, free: 5.191 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004028/0.1854, allocations: 128.6 kB / 324.1 MB, free: 5.062 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.1855, allocations: 72.5 kB / 324.1 MB, free: 4.992 MB / 266.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1855, allocations: 4 kB / 324.1 MB, free: 4.988 MB / 266.7 MB Notification: Performance of Templates: time 0.03049/0.216, allocations: 17.07 MB / 341.2 MB, free: 4.266 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: 7.985533753992058]