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.0008747/0.0008746, allocations: 96 kB / 17.3 MB, free: 6.387 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.0008581/0.0008581, allocations: 176.8 kB / 18.21 MB, free: 5.551 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.934/1.934, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004562/0.0004563, allocations: 20 kB / 281.4 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.12, allocations: 47.58 MB / 329 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01114/0.1312, allocations: 8.978 MB / 337.9 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006895/0.1382, allocations: 3.008 MB / 341 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001441/0.1397, allocations: 31.88 kB / 341 MB, free: 7.664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001752/0.1415, allocations: 0.505 MB / 341.5 MB, free: 7.156 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002022/0.1435, allocations: 0.4926 MB / 342 MB, free: 6.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008379/0.1443, allocations: 271.7 kB / 342.2 MB, free: 6.395 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002177/0.1465, allocations: 1.673 MB / 343.9 MB, free: 4.715 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008527/0.1474, allocations: 0.5571 MB / 344.5 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007988/0.1482, allocations: 0.5755 MB / 345.1 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007492/0.149, allocations: 0.657 MB / 345.7 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000137/0.1491, allocations: 84 kB / 345.8 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003304/0.1495, allocations: 120 kB / 345.9 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002358/0.1497, allocations: 250.8 kB / 346.2 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007495/0.1505, allocations: 0.7479 MB / 346.9 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001764/0.1522, allocations: 1.86 MB / 348.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1522, allocations: 0 / 348.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1523, allocations: 0 / 348.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.1523, allocations: 4 kB / 348.8 MB, free: 15.82 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.002877/0.1552, allocations: 1.548 MB / 350.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.1552, allocations: 8.031 kB / 350.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005926/0.1558, allocations: 203 kB / 350.5 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.1571, allocations: 0.8211 MB / 351.3 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001527/0.1573, allocations: 116.4 kB / 351.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/0.1575, allocations: 116 kB / 351.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/0.1594, allocations: 1.146 MB / 352.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.693e-05/0.1595, allocations: 4 kB / 352.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.1596, allocations: 48 kB / 352.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/0.1596, allocations: 24 kB / 352.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.1613, allocations: 0.7808 MB / 353.6 MB, free: 10.8 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.006097/0.1674, allocations: 3.973 MB / 357.5 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.169, allocations: 0.5965 MB / 358.1 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005488/0.1696, allocations: 282.9 kB / 358.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.54e-05/0.1696, allocations: 9.125 kB / 358.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000696/0.1703, allocations: 311 kB / 358.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.705e-06/0.1704, allocations: 0 / 358.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.005118/0.1755, allocations: 2.139 MB / 360.9 MB, free: 3.184 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002631/0.1758, allocations: 475.2 kB / 361.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/0.1773, allocations: 1.105 MB / 362.4 MB, free: 1.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.333e-05/0.1774, allocations: 37.7 kB / 362.5 MB, free: 1.449 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005918/0.178, allocations: 0.6466 MB / 363.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002125/0.1782, allocations: 228.8 kB / 363.3 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.1783, allocations: 85.67 kB / 363.4 MB, free: 488 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1785, allocations: 345.9 kB / 363.8 MB, free: 136 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005929/0.1791, allocations: 254.5 kB / 364 MB, free: 15.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.1801, allocations: 0.7286 MB / 364.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001501/0.1817, allocations: 0.9532 MB / 365.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.1817, allocations: 7.938 kB / 365.7 MB, free: 13.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002245/0.1839, allocations: 1.157 MB / 366.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.064e-05/0.184, allocations: 75.34 kB / 366.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/0.1841, allocations: 12 kB / 366.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006203/0.1847, allocations: 176.9 kB / 367.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000673/0.1854, allocations: 207.7 kB / 367.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004558/0.1899, allocations: 3.556 MB / 370.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.1913, allocations: 76.02 kB / 370.9 MB, free: 8.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.459e-05/0.1914, allocations: 48 kB / 371 MB, free: 8.211 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.0007894/0.1922, allocations: 297.6 kB / 371.3 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.1924, allocations: 126.4 kB / 371.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.1943, allocations: 0.7233 MB / 372.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1943, allocations: 4 kB / 372.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1943, allocations: 4 kB / 372.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001662/0.196, allocations: 0.9763 MB / 373.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003325/0.1993, allocations: 1.813 MB / 374.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/0.1993, allocations: 11.92 kB / 374.9 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004924/0.1998, allocations: 103.9 kB / 375 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004838/0.2003, allocations: 137.9 kB / 375.2 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/0.2004, allocations: 15.98 kB / 375.2 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004234/0.2046, allocations: 3.286 MB / 378.5 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.2046, allocations: 0 / 378.5 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2415/0.4461, allocations: 1.073 MB / 379.6 MB, free: 51.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000905/0.4471, allocations: 252.5 kB / 379.8 MB, free: 50.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.4473, allocations: 18 kB / 379.8 MB, free: 50.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007059/0.448, allocations: 50.61 kB / 379.9 MB, free: 50.95 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/0.4483, allocations: 55.95 kB / 379.9 MB, free: 50.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.802e-05/0.4484, allocations: 20.92 kB / 379.9 MB, free: 50.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002052/0.4504, allocations: 0.7421 MB / 380.7 MB, free: 50.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4504, allocations: 0.7812 kB / 380.7 MB, free: 50.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002183/0.4526, allocations: 308.7 kB / 381 MB, free: 50.84 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.0004153/0.453, allocations: 137 kB / 381.1 MB, free: 50.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002917/0.456, allocations: 1.105 MB / 382.2 MB, free: 50.38 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.456, allocations: 1.062 kB / 382.2 MB, free: 50.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.4572, allocations: 0.565 MB / 382.8 MB, free: 50.13 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.4593, allocations: 304.8 kB / 383.1 MB, free: 50.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005605/0.4649, allocations: 2.837 MB / 385.9 MB, free: 48.6 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009807/0.466, allocations: 1.09 MB / 387 MB, free: 47.88 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001024/0.467, allocations: 151.9 kB / 387.2 MB, free: 47.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.4672, allocations: 77.39 kB / 387.2 MB, free: 47.83 MB / 318.1 MB Notification: Performance of SimCode: time 2.344e-06/0.4672, allocations: 0 / 387.2 MB, free: 47.83 MB / 318.1 MB Notification: Performance of Templates: time 0.02923/0.4965, allocations: 16.84 MB / 404.1 MB, free: 38.32 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