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.0007921/0.0007922, allocations: 95.75 kB / 16.65 MB, free: 6.27 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.0007927/0.0007927, allocations: 179.9 kB / 17.57 MB, free: 5.883 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.381/1.381, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002485/0.0002487, allocations: 9.312 kB / 301.4 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09229/0.09255, allocations: 50.42 MB / 351.8 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009556/0.1021, allocations: 9.023 MB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006157/0.1083, allocations: 3.018 MB / 363.9 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001592/0.11, allocations: 27.94 kB / 363.9 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002089/0.1121, allocations: 0.5128 MB / 364.4 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00186/0.114, allocations: 496.4 kB / 364.9 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008958/0.1149, allocations: 279.7 kB / 365.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002223/0.1171, allocations: 1.67 MB / 366.8 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007515/0.1179, allocations: 0.5454 MB / 367.4 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006846/0.1186, allocations: 0.5639 MB / 368 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006859/0.1193, allocations: 0.6608 MB / 368.6 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001313/0.1194, allocations: 84 kB / 368.7 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002754/0.1197, allocations: 116 kB / 368.8 MB, free: 2.605 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.1199, allocations: 258.8 kB / 369.1 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006369/0.1206, allocations: 0.7479 MB / 369.8 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1819/0.3025, allocations: 1.855 MB / 371.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3025, allocations: 0 / 371.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.3025, allocations: 0 / 371.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.26e-05/0.3026, allocations: 0.875 kB / 371.7 MB, free: 13.52 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.002988/0.3056, allocations: 1.547 MB / 373.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3057, allocations: 9.125 kB / 373.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000562/0.3062, allocations: 204.7 kB / 373.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.3074, allocations: 0.814 MB / 374.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.3076, allocations: 122.3 kB / 374.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.3077, allocations: 119.9 kB / 374.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00203/0.3098, allocations: 1.152 MB / 375.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/0.3098, allocations: 1.766 kB / 375.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.12e-05/0.3099, allocations: 48.09 kB / 375.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.31, allocations: 25.38 kB / 375.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.3116, allocations: 0.7743 MB / 376.5 MB, free: 11.9 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.005783/0.3174, allocations: 3.961 MB / 380.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.3191, allocations: 0.6045 MB / 381 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000544/0.3197, allocations: 276.6 kB / 381.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.578e-05/0.3197, allocations: 12.75 kB / 381.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000699/0.3204, allocations: 307.4 kB / 381.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.857e-06/0.3205, allocations: 1.875 kB / 381.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004662/0.3251, allocations: 2.136 MB / 383.8 MB, free: 9.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.3252, allocations: 478.6 kB / 384.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001378/0.3266, allocations: 1.107 MB / 385.3 MB, free: 8.531 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.177e-05/0.3267, allocations: 43.61 kB / 385.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004392/0.3271, allocations: 0.6394 MB / 386 MB, free: 7.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.3273, allocations: 236.4 kB / 386.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.3274, allocations: 82.94 kB / 386.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.813e-05/0.3275, allocations: 343.2 kB / 386.7 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005521/0.3281, allocations: 258.7 kB / 386.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008132/0.3289, allocations: 0.7157 MB / 387.6 MB, free: 6.672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.3302, allocations: 0.9658 MB / 388.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.3302, allocations: 4.125 kB / 388.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002321/0.3326, allocations: 1.162 MB / 389.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.483e-05/0.3326, allocations: 63.19 kB / 389.8 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.3327, allocations: 11.66 kB / 389.8 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006402/0.3333, allocations: 173.9 kB / 390 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007519/0.3341, allocations: 206.7 kB / 390.2 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003587/0.3377, allocations: 3.559 MB / 393.8 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/0.3389, allocations: 83.36 kB / 393.9 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.864e-05/0.339, allocations: 45.53 kB / 393.9 MB, free: 2.234 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.0005977/0.3396, allocations: 297.9 kB / 394.2 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.3398, allocations: 128.5 kB / 394.3 MB, free: 1.957 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.3412, allocations: 0.7239 MB / 395 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.3412, allocations: 6.344 kB / 395 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3412, allocations: 1.25 kB / 395 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001223/0.3424, allocations: 0.9726 MB / 396 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002947/0.3454, allocations: 1.807 MB / 397.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.3454, allocations: 2.719 kB / 397.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004968/0.3459, allocations: 115.1 kB / 397.9 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004432/0.3464, allocations: 132.9 kB / 398.1 MB, free: 15.76 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.3464, allocations: 17.28 kB / 398.1 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00346/0.3499, allocations: 3.288 MB / 401.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.217e-06/0.3499, allocations: 2.5 kB / 401.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.3519, allocations: 1.073 MB / 402.4 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00048/0.3523, allocations: 255.4 kB / 402.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.3525, allocations: 25.64 kB / 402.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006426/0.3531, allocations: 42.16 kB / 402.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.3533, allocations: 63.98 kB / 402.8 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.335e-05/0.3533, allocations: 16.66 kB / 402.8 MB, free: 11.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001046/0.3544, allocations: 0.7465 MB / 403.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3544, allocations: 0 / 403.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001209/0.3556, allocations: 309.9 kB / 403.9 MB, free: 11.12 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.0002278/0.3558, allocations: 142.3 kB / 404 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.3578, allocations: 1.104 MB / 405.1 MB, free: 9.867 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3578, allocations: 0 / 405.1 MB, free: 9.867 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009274/0.3588, allocations: 0.5632 MB / 405.7 MB, free: 9.293 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/0.3605, allocations: 313.9 kB / 406 MB, free: 8.988 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003616/0.3641, allocations: 2.846 MB / 408.9 MB, free: 6.117 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006423/0.3647, allocations: 1.082 MB / 409.9 MB, free: 5.008 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005578/0.3653, allocations: 152.7 kB / 410.1 MB, free: 4.859 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.3655, allocations: 75.44 kB / 410.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3655, allocations: 0 / 410.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of Templates: time 0.02862/0.3941, allocations: 16.82 MB / 427 MB, free: 4.25 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/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