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.001248/0.001248, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001308/0.001308, allocations: 187.1 kB / 18.67 MB, free: 4.422 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.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 47.91 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2634, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01085/0.2743, allocations: 9.588 MB / 411 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005669/0.28, allocations: 3.115 MB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/0.2813, allocations: 27.94 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001969/0.2834, allocations: 0.59 MB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002/0.2854, allocations: 0.5464 MB / 415.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.2864, allocations: 323.4 kB / 415.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00254/0.289, allocations: 1.763 MB / 417.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.2902, allocations: 0.6375 MB / 418 MB, free: 8.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001216/0.2915, allocations: 0.6732 MB / 418.7 MB, free: 7.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.2927, allocations: 0.7468 MB / 419.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004295/0.2931, allocations: 156 kB / 419.6 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007017/0.2939, allocations: 207.9 kB / 419.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004174/0.2943, allocations: 330.8 kB / 420.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.2955, allocations: 0.8048 MB / 420.9 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002476/0.298, allocations: 1.978 MB / 422.9 MB, free: 3.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2981, allocations: 0 / 422.9 MB, free: 3.273 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2981, allocations: 4 kB / 422.9 MB, free: 3.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.161e-05/0.2981, allocations: 0 / 422.9 MB, free: 3.27 MB / 334.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.003587/0.3017, allocations: 1.797 MB / 424.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3018, allocations: 8.031 kB / 424.7 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005886/0.3024, allocations: 206.9 kB / 424.9 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.3038, allocations: 0.825 MB / 425.7 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.3039, allocations: 112.4 kB / 425.8 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.3041, allocations: 116 kB / 426 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.3059, allocations: 1.142 MB / 427.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/0.3059, allocations: 0 / 427.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.306, allocations: 48 kB / 427.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.3061, allocations: 24 kB / 427.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/0.3075, allocations: 0.7574 MB / 427.9 MB, free: 14.03 MB / 350.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.005684/0.3132, allocations: 3.922 MB / 431.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.3148, allocations: 0.5854 MB / 432.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000478/0.3153, allocations: 271.6 kB / 432.7 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.32e-05/0.3153, allocations: 12.55 kB / 432.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005816/0.3159, allocations: 295.1 kB / 433 MB, free: 8.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.455e-06/0.3159, allocations: 0 / 433 MB, free: 8.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004646/0.3206, allocations: 2.073 MB / 435.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002206/0.3208, allocations: 483.1 kB / 435.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/0.3223, allocations: 1.105 MB / 436.6 MB, free: 4.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.203e-05/0.3224, allocations: 41.7 kB / 436.7 MB, free: 4.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005039/0.3229, allocations: 0.6427 MB / 437.3 MB, free: 4.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/0.3231, allocations: 228.8 kB / 437.5 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/0.3234, allocations: 202.7 kB / 437.7 MB, free: 3.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3235, allocations: 345.9 kB / 438.1 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005113/0.324, allocations: 242.5 kB / 438.3 MB, free: 3.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008295/0.3249, allocations: 0.713 MB / 439 MB, free: 2.234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.3262, allocations: 0.9375 MB / 440 MB, free: 1.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.3262, allocations: 7.938 kB / 440 MB, free: 1.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002067/0.3282, allocations: 1.149 MB / 441.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.457e-05/0.3283, allocations: 63.41 kB / 441.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.3283, allocations: 12 kB / 441.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005848/0.3289, allocations: 173.1 kB / 441.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006547/0.3296, allocations: 207.7 kB / 441.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004081/0.3337, allocations: 3.875 MB / 445.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.3347, allocations: 63.81 kB / 445.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.159e-05/0.3348, allocations: 44 kB / 445.6 MB, free: 11.22 MB / 366.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.0004884/0.3353, allocations: 301.5 kB / 445.9 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.3355, allocations: 126.5 kB / 446 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.3369, allocations: 0.7076 MB / 446.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.3369, allocations: 4 kB / 446.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.337, allocations: 4 kB / 446.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001319/0.3383, allocations: 0.9568 MB / 447.6 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.3411, allocations: 1.789 MB / 449.4 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3411, allocations: 4 kB / 449.4 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00047/0.3416, allocations: 107.8 kB / 449.5 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000429/0.342, allocations: 121.9 kB / 449.7 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.3421, allocations: 19.98 kB / 449.7 MB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003374/0.3455, allocations: 3.597 MB / 453.3 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.3455, allocations: 4 kB / 453.3 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.3474, allocations: 1.042 MB / 454.3 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004889/0.3479, allocations: 251.6 kB / 454.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/0.348, allocations: 20 kB / 454.6 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00061/0.3486, allocations: 39.97 kB / 454.6 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.3488, allocations: 56.42 kB / 454.7 MB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/0.3488, allocations: 16 kB / 454.7 MB, free: 1.508 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001044/0.3499, allocations: 0.7484 MB / 455.4 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3499, allocations: 3.938 kB / 455.5 MB, free: 0.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001068/0.3509, allocations: 304 kB / 455.8 MB, free: 464 kB / 366.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.0002345/0.3512, allocations: 143.1 kB / 455.9 MB, free: 312 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001969/0.3532, allocations: 1.103 MB / 457 MB, free: 15.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.3532, allocations: 4 kB / 457 MB, free: 15.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000889/0.3541, allocations: 0.5488 MB / 457.5 MB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/0.3555, allocations: 328.4 kB / 457.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.3592, allocations: 2.25 MB / 460.1 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006552/0.3598, allocations: 1.082 MB / 461.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.3601, allocations: 83.44 kB / 461.3 MB, free: 10.76 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3601, allocations: 0 / 461.3 MB, free: 10.76 MB / 382.1 MB Notification: Performance of Templates: time 0.0317/0.3918, allocations: 26.31 MB / 487.6 MB, free: 0.5352 MB / 398.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