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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=500000,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=500000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001286, allocations: 93.83 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 183.6 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003354, allocations: 11.59 kB / 300.7 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1131, allocations: 50.42 MB / 351.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008999/0.1222, allocations: 7.656 MB / 358.8 MB, free: 4.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006227/0.1284, allocations: 2.959 MB / 361.8 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001698/0.1302, allocations: 27.94 kB / 361.8 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001999/0.1322, allocations: 493.5 kB / 362.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002561/0.1348, allocations: 0.6426 MB / 362.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.1359, allocations: 223.6 kB / 363.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003627/0.1396, allocations: 1.252 MB / 364.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.1406, allocations: 487.4 kB / 364.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00106/0.1417, allocations: 0.5215 MB / 365.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007699/0.1425, allocations: 0.5911 MB / 366 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.1426, allocations: 76 kB / 366 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003723/0.143, allocations: 120 kB / 366.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002414/0.1433, allocations: 223 kB / 366.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003892/0.1437, allocations: 316.9 kB / 366.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001624/0.1453, allocations: 1.437 MB / 368.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1453, allocations: 0 / 368.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.861e-06/0.1453, allocations: 3.984 kB / 368.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.482e-05/0.1454, allocations: 0 / 368.1 MB, free: 10.7 MB / 302.1 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.003205/0.1486, allocations: 1.547 MB / 369.7 MB, free: 9.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1486, allocations: 8.031 kB / 369.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005304/0.1492, allocations: 190.1 kB / 369.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.1505, allocations: 0.7503 MB / 370.6 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.1507, allocations: 115.8 kB / 370.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.1508, allocations: 111.9 kB / 370.8 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001856/0.1527, allocations: 1.135 MB / 372 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.014e-05/0.1527, allocations: 7.922 kB / 372 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.877e-05/0.1528, allocations: 51.94 kB / 372 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.1529, allocations: 28 kB / 372.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.1544, allocations: 0.7652 MB / 372.8 MB, free: 5.781 MB / 302.1 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.005774/0.1602, allocations: 3.875 MB / 376.7 MB, free: 1.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.1618, allocations: 0.6126 MB / 377.3 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.877e-05/0.1618, allocations: 12.55 kB / 377.3 MB, free: 1.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006591/0.1625, allocations: 307 kB / 377.6 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.976e-06/0.1625, allocations: 0 / 377.6 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004828/0.1673, allocations: 2.102 MB / 379.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002397/0.1676, allocations: 479.2 kB / 380.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001329/0.1689, allocations: 1.008 MB / 381.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.442e-05/0.169, allocations: 41.7 kB / 381.2 MB, free: 12.92 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005193/0.1695, allocations: 0.6389 MB / 381.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.1697, allocations: 236.7 kB / 382.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.1698, allocations: 20 kB / 382.1 MB, free: 12.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1699, allocations: 345.9 kB / 382.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005601/0.1705, allocations: 258.4 kB / 382.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.1715, allocations: 0.7053 MB / 383.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/0.1722, allocations: 414.2 kB / 383.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.1723, allocations: 7.938 kB / 383.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002121/0.1744, allocations: 1.13 MB / 385 MB, free: 8.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.617e-05/0.1745, allocations: 67.41 kB / 385 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.612e-05/0.1745, allocations: 12 kB / 385 MB, free: 8.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006422/0.1752, allocations: 173.8 kB / 385.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007098/0.1759, allocations: 203.7 kB / 385.4 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00454/0.1804, allocations: 3.6 MB / 389 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.1816, allocations: 84.02 kB / 389.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.797e-05/0.1817, allocations: 44 kB / 389.1 MB, free: 4.48 MB / 318.1 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.000604/0.1823, allocations: 297.6 kB / 389.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.1824, allocations: 126.5 kB / 389.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.184, allocations: 0.7156 MB / 390.3 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.184, allocations: 11.95 kB / 390.3 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.184, allocations: 3.938 kB / 390.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001512/0.1855, allocations: 0.9763 MB / 391.3 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003098/0.1886, allocations: 1.743 MB / 393 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.1887, allocations: 4 kB / 393 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.1892, allocations: 111.8 kB / 393.1 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004423/0.1896, allocations: 132.2 kB / 393.2 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.031e-05/0.1897, allocations: 16 kB / 393.3 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00359/0.1933, allocations: 3.314 MB / 396.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1933, allocations: 4.031 kB / 396.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.1955, allocations: 1.161 MB / 397.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005799/0.1961, allocations: 239.6 kB / 398 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/0.1962, allocations: 20 kB / 398 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005837/0.1968, allocations: 51.86 kB / 398 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.197, allocations: 56.44 kB / 398.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.197, allocations: 24 kB / 398.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009883/0.198, allocations: 0.6742 MB / 398.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.198, allocations: 0 / 398.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001192/0.1992, allocations: 304.1 kB / 399.1 MB, free: 9.93 MB / 334.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002775/0.1995, allocations: 139.6 kB / 399.2 MB, free: 9.781 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002208/0.2017, allocations: 1.099 MB / 400.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.2017, allocations: 4 kB / 400.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.2028, allocations: 0.5568 MB / 400.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.2043, allocations: 309.1 kB / 401.2 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004453/0.2088, allocations: 2.697 MB / 403.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.2099, allocations: 1.109 MB / 405 MB, free: 3.867 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008594/0.2108, allocations: 137.3 kB / 405.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.211, allocations: 71.44 kB / 405.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of SimCode: time 1.323e-06/0.211, allocations: 0 / 405.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of Templates: time 0.02802/0.239, allocations: 15.29 MB / 420.5 MB, free: 4.594 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches