Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001675/0.001675, allocations: 107.4 kB / 17.15 MB, free: 6.305 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.00164/0.001639, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.852/1.852, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 52.3 kB / 280 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1223, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01201/0.1344, allocations: 9.499 MB / 336.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0081/0.1425, allocations: 3.093 MB / 339.2 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002363/0.1451, allocations: 27.94 kB / 339.2 MB, free: 8.207 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002257/0.1474, allocations: 0.505 MB / 339.7 MB, free: 7.699 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002906/0.1503, allocations: 0.4965 MB / 340.2 MB, free: 7.199 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008918/0.1512, allocations: 271.7 kB / 340.5 MB, free: 6.934 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002521/0.1537, allocations: 1.681 MB / 342.2 MB, free: 5.246 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009633/0.1547, allocations: 0.5532 MB / 342.7 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001214/0.1559, allocations: 0.6069 MB / 343.3 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008214/0.1568, allocations: 0.7115 MB / 344 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.1569, allocations: 108 kB / 344.2 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003647/0.1573, allocations: 148 kB / 344.3 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002303/0.1576, allocations: 286.8 kB / 344.6 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007812/0.1583, allocations: 0.7579 MB / 345.3 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001876/0.1602, allocations: 1.915 MB / 347.2 MB, free: 132 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.1602, allocations: 0 / 347.2 MB, free: 132 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1603, allocations: 0 / 347.2 MB, free: 132 kB / 286.1 MB Notification: Performance of Transformations before backend: time 2.359e-05/0.1603, allocations: 0 / 347.2 MB, free: 132 kB / 286.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.003534/0.1638, allocations: 1.793 MB / 349 MB, free: 14.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1639, allocations: 8.031 kB / 349 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006038/0.1645, allocations: 203 kB / 349.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/0.1659, allocations: 0.8172 MB / 350.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001466/0.166, allocations: 112.4 kB / 350.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.1662, allocations: 120 kB / 350.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001974/0.1682, allocations: 1.139 MB / 351.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.1682, allocations: 7.938 kB / 351.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.46e-05/0.1683, allocations: 47.98 kB / 351.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.584e-05/0.1683, allocations: 28 kB / 351.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.1699, allocations: 0.7613 MB / 352.3 MB, free: 10.89 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.006786/0.1767, allocations: 3.937 MB / 356.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.1784, allocations: 0.5853 MB / 356.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005283/0.179, allocations: 274.9 kB / 357.1 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.903e-05/0.1791, allocations: 12.55 kB / 357.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007445/0.1798, allocations: 295.1 kB / 357.4 MB, free: 5.574 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 4.007e-06/0.1798, allocations: 0 / 357.4 MB, free: 5.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.005621/0.1855, allocations: 2.077 MB / 359.4 MB, free: 3.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003011/0.1858, allocations: 475.2 kB / 359.9 MB, free: 2.828 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.1877, allocations: 1.105 MB / 361 MB, free: 1.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.067e-05/0.1878, allocations: 41.7 kB / 361.1 MB, free: 1.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005922/0.1884, allocations: 0.6428 MB / 361.7 MB, free: 1.012 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.1886, allocations: 236.6 kB / 361.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003068/0.1889, allocations: 202.7 kB / 362.1 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.1891, allocations: 349.9 kB / 362.5 MB, free: 232 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/0.1897, allocations: 246.5 kB / 362.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009639/0.1906, allocations: 0.7014 MB / 363.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.1923, allocations: 0.9414 MB / 364.3 MB, free: 13.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.455e-05/0.1923, allocations: 7.938 kB / 364.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002392/0.1947, allocations: 1.145 MB / 365.5 MB, free: 12.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.28e-05/0.1948, allocations: 67.39 kB / 365.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.1948, allocations: 12 kB / 365.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006729/0.1955, allocations: 165.8 kB / 365.7 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006915/0.1962, allocations: 207.6 kB / 365.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004774/0.201, allocations: 3.552 MB / 369.5 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/0.2027, allocations: 67.86 kB / 369.6 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.429e-05/0.2028, allocations: 48 kB / 369.6 MB, free: 8.395 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 (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.0007888/0.2036, allocations: 297.7 kB / 369.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000274/0.2039, allocations: 126.4 kB / 370 MB, free: 7.969 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.2055, allocations: 0.7115 MB / 370.7 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.2055, allocations: 8.125 kB / 370.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.2055, allocations: 4 kB / 370.7 MB, free: 7.219 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001461/0.207, allocations: 0.949 MB / 371.7 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/0.2103, allocations: 1.79 MB / 373.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/0.2103, allocations: 7.938 kB / 373.5 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/0.2108, allocations: 107.8 kB / 373.6 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004636/0.2113, allocations: 125.8 kB / 373.7 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.472e-05/0.2114, allocations: 19.98 kB / 373.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0039/0.2153, allocations: 3.278 MB / 377 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.2153, allocations: 0 / 377 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2346/0.4499, allocations: 1.051 MB / 378.1 MB, free: 51.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006044/0.4505, allocations: 253.4 kB / 378.3 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/0.4507, allocations: 18.66 kB / 378.3 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006785/0.4514, allocations: 44.84 kB / 378.4 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.4516, allocations: 58.36 kB / 378.4 MB, free: 51.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-05/0.4516, allocations: 19.09 kB / 378.5 MB, free: 51.87 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001278/0.4529, allocations: 0.7414 MB / 379.2 MB, free: 51.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.343e-06/0.4529, allocations: 0.5625 kB / 379.2 MB, free: 51.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001477/0.4544, allocations: 314.1 kB / 379.5 MB, free: 51.76 MB / 318.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 (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.0002787/0.4547, allocations: 133 kB / 379.6 MB, free: 51.67 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002175/0.4569, allocations: 1.09 MB / 380.7 MB, free: 51.31 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/0.4569, allocations: 4.469 kB / 380.7 MB, free: 51.31 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000896/0.4578, allocations: 0.5486 MB / 381.3 MB, free: 51.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/0.4594, allocations: 307.4 kB / 381.6 MB, free: 51.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004004/0.4634, allocations: 2.69 MB / 384.3 MB, free: 49.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007582/0.4642, allocations: 1.087 MB / 385.4 MB, free: 48.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008519/0.4651, allocations: 150.8 kB / 385.5 MB, free: 48.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.4653, allocations: 80.23 kB / 385.6 MB, free: 48.7 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4653, allocations: 0 / 385.6 MB, free: 48.7 MB / 318.1 MB Notification: Performance of Templates: time 0.03644/0.5018, allocations: 16.96 MB / 402.5 MB, free: 39.52 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches