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.001618/0.001618, allocations: 110.1 kB / 17.16 MB, free: 6.082 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.001794/0.001794, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.39/2.39, allocations: 222.9 MB / 241.7 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 44.84 kB / 300.6 MB, free: 6.309 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.1749, allocations: 49.45 MB / 350.1 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.02018/0.1951, allocations: 9.534 MB / 359.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01848/0.2137, allocations: 3.1 MB / 362.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002393/0.2161, allocations: 27.94 kB / 362.7 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01186/0.2282, allocations: 0.5128 MB / 363.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00414/0.2324, allocations: 496.4 kB / 363.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001724/0.2341, allocations: 279.7 kB / 364 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004276/0.2384, allocations: 1.679 MB / 365.7 MB, free: 5.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001688/0.2402, allocations: 0.5493 MB / 366.2 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00173/0.2419, allocations: 0.6107 MB / 366.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001728/0.2437, allocations: 0.7116 MB / 367.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003743/0.2441, allocations: 108 kB / 367.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007654/0.2449, allocations: 144 kB / 367.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004131/0.2453, allocations: 286.8 kB / 368.1 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001482/0.2468, allocations: 0.7541 MB / 368.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002717/0.2495, allocations: 1.555 MB / 370.4 MB, free: 420 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.2496, allocations: 0 / 370.4 MB, free: 420 kB / 302.1 MB Notification: Performance of FrontEnd: time 5.36e-06/0.2496, allocations: 0 / 370.4 MB, free: 420 kB / 302.1 MB Notification: Performance of Transformations before backend: time 4.604e-05/0.2496, allocations: 3.938 kB / 370.4 MB, free: 416 kB / 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.3143/0.5639, allocations: 1.791 MB / 372.2 MB, free: 25.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.765e-05/0.564, allocations: 9.125 kB / 372.2 MB, free: 25.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001307/0.5653, allocations: 197.1 kB / 372.4 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002552/0.5679, allocations: 0.82 MB / 373.2 MB, free: 24.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002367/0.5682, allocations: 117.5 kB / 373.3 MB, free: 24.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000307/0.5685, allocations: 113.9 kB / 373.4 MB, free: 24.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003905/0.5724, allocations: 1.146 MB / 374.6 MB, free: 24.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.038e-05/0.5725, allocations: 6.125 kB / 374.6 MB, free: 24.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001589/0.5727, allocations: 48.25 kB / 374.6 MB, free: 24.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-05/0.5728, allocations: 25.84 kB / 374.6 MB, free: 24.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002869/0.5756, allocations: 0.7562 MB / 375.4 MB, free: 23.81 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.01113/0.5868, allocations: 3.932 MB / 379.3 MB, free: 21.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002896/0.5897, allocations: 0.5903 MB / 379.9 MB, free: 21.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.5908, allocations: 265.7 kB / 380.2 MB, free: 21.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.473e-05/0.591, allocations: 12.77 kB / 380.2 MB, free: 21.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001247/0.5922, allocations: 300.2 kB / 380.5 MB, free: 20.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 5.841e-06/0.5923, allocations: 0 / 380.5 MB, free: 20.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.009079/0.6013, allocations: 2.077 MB / 382.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001591/0.6016, allocations: 475 kB / 383 MB, free: 19.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003824/0.6054, allocations: 1.105 MB / 384.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/0.6057, allocations: 44.67 kB / 384.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009552/0.6066, allocations: 0.642 MB / 384.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004134/0.6071, allocations: 227.5 kB / 385 MB, free: 18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006274/0.6077, allocations: 200.4 kB / 385.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.6079, allocations: 342.6 kB / 385.6 MB, free: 17.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00111/0.609, allocations: 250.8 kB / 385.8 MB, free: 17.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.6106, allocations: 0.7121 MB / 386.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/0.613, allocations: 0.9404 MB / 387.5 MB, free: 16.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-05/0.6131, allocations: 4.312 kB / 387.5 MB, free: 16.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.004319/0.6174, allocations: 1.143 MB / 388.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.704e-05/0.6175, allocations: 73.17 kB / 388.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-05/0.6176, allocations: 11.22 kB / 388.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/0.6188, allocations: 164.5 kB / 388.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/0.6202, allocations: 208.6 kB / 389.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006436/0.6267, allocations: 3.549 MB / 392.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002439/0.6291, allocations: 77.91 kB / 392.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/0.6294, allocations: 49.42 kB / 392.7 MB, free: 12.02 MB / 302.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.001013/0.6304, allocations: 291.7 kB / 393 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004725/0.6309, allocations: 125.6 kB / 393.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002623/0.6336, allocations: 0.7028 MB / 393.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/0.6336, allocations: 15.77 kB / 393.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.6336, allocations: 0 / 393.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001942/0.6356, allocations: 0.9541 MB / 394.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00583/0.6414, allocations: 1.797 MB / 396.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/0.6415, allocations: 1.375 kB / 396.6 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008334/0.6423, allocations: 108.9 kB / 396.7 MB, free: 9.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007775/0.6431, allocations: 135.5 kB / 396.9 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.308e-05/0.6433, allocations: 17.44 kB / 396.9 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004874/0.6481, allocations: 3.274 MB / 400.1 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.6482, allocations: 2.719 kB / 400.2 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003432/0.6516, allocations: 1.049 MB / 401.2 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.6529, allocations: 263 kB / 401.5 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006304/0.6535, allocations: 11.94 kB / 401.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006042/0.6596, allocations: 47.56 kB / 401.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003724/0.66, allocations: 56.17 kB / 401.6 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/0.6602, allocations: 23.66 kB / 401.6 MB, free: 5.078 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002526/0.6627, allocations: 0.7476 MB / 402.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.6628, allocations: 0 / 402.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002782/0.6656, allocations: 304.1 kB / 402.6 MB, free: 4.383 MB / 302.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.0004714/0.6661, allocations: 147.1 kB / 402.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003452/0.6695, allocations: 1.079 MB / 403.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/0.6696, allocations: 0 / 403.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.6711, allocations: 0.5434 MB / 404.4 MB, free: 2.531 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003552/0.6747, allocations: 308.4 kB / 404.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007692/0.6824, allocations: 2.725 MB / 407.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001458/0.6839, allocations: 1.086 MB / 408.5 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005913/0.6846, allocations: 83.44 kB / 408.6 MB, free: 14.28 MB / 318.1 MB Notification: Performance of SimCode: time 2.755e-06/0.6846, allocations: 3.938 kB / 408.6 MB, free: 14.28 MB / 318.1 MB Notification: Performance of Templates: time 0.06141/0.746, allocations: 26.17 MB / 434.8 MB, free: 4.211 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/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) Reference file matches