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.001526/0.001526, allocations: 114.7 kB / 17.28 MB, free: 6.219 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.001419/0.001419, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.755/1.755, allocations: 205.1 MB / 224 MB, free: 12.45 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.001205/0.001205, allocations: 55.92 kB / 280.2 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1311, allocations: 46.63 MB / 326.8 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.0128/0.144, allocations: 9.484 MB / 336.3 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007322/0.1514, allocations: 3.081 MB / 339.4 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002287/0.1538, allocations: 27.94 kB / 339.4 MB, free: 8.125 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.156, allocations: 0.5245 MB / 339.9 MB, free: 7.598 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002658/0.1587, allocations: 492.4 kB / 340.4 MB, free: 7.113 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.1597, allocations: 275.7 kB / 340.7 MB, free: 6.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003143/0.1629, allocations: 1.763 MB / 342.4 MB, free: 5.074 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001124/0.164, allocations: 0.6413 MB / 343.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001447/0.1655, allocations: 0.6693 MB / 343.7 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.167, allocations: 0.7389 MB / 344.5 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003236/0.1674, allocations: 160 kB / 344.6 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005873/0.168, allocations: 196 kB / 344.8 MB, free: 2.648 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002942/0.1683, allocations: 334.8 kB / 345.1 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.1694, allocations: 0.8048 MB / 346 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00272/0.1721, allocations: 1.958 MB / 347.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.158e-05/0.1722, allocations: 3.938 kB / 347.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1722, allocations: 0 / 347.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.108e-05/0.1722, allocations: 0 / 347.9 MB, free: 15.54 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.003735/0.176, allocations: 1.797 MB / 349.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/0.1761, allocations: 8.031 kB / 349.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000669/0.1767, allocations: 199 kB / 349.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.1781, allocations: 0.8172 MB / 350.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.1783, allocations: 112.4 kB / 350.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/0.1785, allocations: 120 kB / 351 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001999/0.1805, allocations: 1.139 MB / 352.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.703e-05/0.1805, allocations: 4 kB / 352.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.768e-05/0.1806, allocations: 48 kB / 352.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.1807, allocations: 24 kB / 352.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.1822, allocations: 0.7612 MB / 352.9 MB, free: 10.31 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.00632/0.1885, allocations: 3.953 MB / 356.9 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.19, allocations: 0.5891 MB / 357.5 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004734/0.1905, allocations: 270.8 kB / 357.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.022e-05/0.1906, allocations: 8.562 kB / 357.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007171/0.1913, allocations: 295.4 kB / 358 MB, free: 4.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 5.7e-06/0.1913, allocations: 0 / 358 MB, free: 4.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.0049/0.1962, allocations: 2.08 MB / 360.1 MB, free: 2.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002862/0.1965, allocations: 487.2 kB / 360.6 MB, free: 2.219 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.1982, allocations: 1.101 MB / 361.7 MB, free: 1.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.748e-05/0.1983, allocations: 41.7 kB / 361.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005778/0.1989, allocations: 0.6428 MB / 362.4 MB, free: 416 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.1991, allocations: 232.7 kB / 362.6 MB, free: 180 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003275/0.1994, allocations: 198.7 kB / 362.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.1996, allocations: 341.9 kB / 363.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005274/0.2002, allocations: 250.5 kB / 363.4 MB, free: 15.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009736/0.2011, allocations: 0.7091 MB / 364.1 MB, free: 14.47 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.2025, allocations: 0.9414 MB / 365 MB, free: 13.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.2026, allocations: 7.938 kB / 365 MB, free: 13.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002105/0.2047, allocations: 1.138 MB / 366.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.159e-05/0.2048, allocations: 71.52 kB / 366.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.2048, allocations: 12 kB / 366.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000639/0.2054, allocations: 165.6 kB / 366.4 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000659/0.2061, allocations: 207.6 kB / 366.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004514/0.2106, allocations: 3.894 MB / 370.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.2119, allocations: 83.8 kB / 370.6 MB, free: 7.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.637e-05/0.212, allocations: 44 kB / 370.6 MB, free: 7.434 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.0005821/0.2126, allocations: 297.5 kB / 370.9 MB, free: 7.133 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.2128, allocations: 126.5 kB / 371 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.2142, allocations: 0.6999 MB / 371.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.2142, allocations: 8 kB / 371.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2143, allocations: 0 / 371.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001325/0.2156, allocations: 0.9568 MB / 372.7 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.2186, allocations: 1.798 MB / 374.5 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.2186, allocations: 4 kB / 374.5 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004724/0.2191, allocations: 104.1 kB / 374.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004672/0.2196, allocations: 129.6 kB / 374.7 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.149e-05/0.2196, allocations: 19.94 kB / 374.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2873/0.5069, allocations: 3.58 MB / 378.3 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.507, allocations: 2.75 kB / 378.3 MB, free: 51.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002594/0.5096, allocations: 1.05 MB / 379.4 MB, free: 51.22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000655/0.5103, allocations: 252.8 kB / 379.6 MB, free: 51.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/0.5104, allocations: 16.45 kB / 379.7 MB, free: 51.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007076/0.5111, allocations: 44.47 kB / 379.7 MB, free: 51.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.5114, allocations: 59.61 kB / 379.8 MB, free: 51.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.854e-05/0.5115, allocations: 18.64 kB / 379.8 MB, free: 51.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001842/0.5133, allocations: 0.7436 MB / 380.5 MB, free: 51.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5133, allocations: 0 / 380.5 MB, free: 51.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001829/0.5152, allocations: 309.4 kB / 380.8 MB, free: 51.02 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.000356/0.5155, allocations: 136.3 kB / 381 MB, free: 50.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002723/0.5183, allocations: 1.115 MB / 382.1 MB, free: 50.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.5183, allocations: 4.906 kB / 382.1 MB, free: 50.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.5194, allocations: 0.5497 MB / 382.6 MB, free: 50.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.5212, allocations: 336.6 kB / 383 MB, free: 50.17 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004329/0.5256, allocations: 2.7 MB / 385.7 MB, free: 48.53 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007313/0.5263, allocations: 1.082 MB / 386.7 MB, free: 47.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008618/0.5272, allocations: 152.6 kB / 386.9 MB, free: 47.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.5274, allocations: 77.52 kB / 387 MB, free: 47.76 MB / 318.1 MB Notification: Performance of SimCode: time 2.645e-06/0.5274, allocations: 0 / 387 MB, free: 47.76 MB / 318.1 MB Notification: Performance of Templates: time 0.034/0.5614, allocations: 17.84 MB / 404.8 MB, free: 37.44 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