Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001428/0.001428, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007197/0.0007193, allocations: 103.8 kB / 297.4 MB, free: 6.703 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002113/0.0002114, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1887, allocations: 51.28 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.2962, allocations: 100.6 MB / 0.4974 GB, free: 6.949 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.2965, allocations: 87.95 kB / 0.4974 GB, free: 6.863 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2232/0.5197, allocations: 30.62 MB / 0.5273 GB, free: 85.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5197, allocations: 3.938 kB / 0.5274 GB, free: 85.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.309e-05/0.5198, allocations: 31.94 kB / 0.5274 GB, free: 85.35 MB / 378.7 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.002108/0.5219, allocations: 1.538 MB / 0.5289 GB, free: 83.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.5219, allocations: 12.02 kB / 0.5289 GB, free: 83.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000459/0.5224, allocations: 199 kB / 0.5291 GB, free: 83.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.5236, allocations: 0.8926 MB / 0.53 GB, free: 82.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.5237, allocations: 116.4 kB / 0.5301 GB, free: 82.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.5238, allocations: 112.3 kB / 0.5302 GB, free: 82.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/0.5253, allocations: 1.145 MB / 0.5313 GB, free: 81.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.5253, allocations: 7.844 kB / 0.5313 GB, free: 81.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.07e-05/0.5254, allocations: 48 kB / 0.5313 GB, free: 81.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.5255, allocations: 28 kB / 0.5314 GB, free: 81.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.5267, allocations: 0.7769 MB / 0.5321 GB, free: 80.28 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004265/0.531, allocations: 3.938 MB / 0.536 GB, free: 76.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.5323, allocations: 0.608 MB / 0.5366 GB, free: 75.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004195/0.5328, allocations: 278.9 kB / 0.5368 GB, free: 75.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.578e-05/0.5328, allocations: 12.55 kB / 0.5368 GB, free: 75.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005114/0.5333, allocations: 315.5 kB / 0.5372 GB, free: 74.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.415e-06/0.5333, allocations: 0 / 0.5372 GB, free: 74.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.003878/0.5372, allocations: 2.12 MB / 0.5392 GB, free: 72.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.836e-05/0.5373, allocations: 475.2 kB / 0.5397 GB, free: 72.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.5384, allocations: 1.066 MB / 0.5407 GB, free: 71.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.362e-05/0.5385, allocations: 45.64 kB / 0.5408 GB, free: 71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003179/0.5388, allocations: 0.6505 MB / 0.5414 GB, free: 70.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.5389, allocations: 236.7 kB / 0.5416 GB, free: 70.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.715e-05/0.539, allocations: 20 kB / 0.5416 GB, free: 70.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.703e-05/0.539, allocations: 349.9 kB / 0.542 GB, free: 69.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004597/0.5395, allocations: 258.5 kB / 0.5422 GB, free: 69.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/0.5401, allocations: 0.7169 MB / 0.5429 GB, free: 68.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.5412, allocations: 0.9727 MB / 0.5439 GB, free: 67.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.5412, allocations: 4 kB / 0.5439 GB, free: 67.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001632/0.5428, allocations: 1.161 MB / 0.545 GB, free: 66.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.005e-05/0.5429, allocations: 71.39 kB / 0.5451 GB, free: 66.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.5429, allocations: 12 kB / 0.5451 GB, free: 66.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004745/0.5434, allocations: 173.6 kB / 0.5453 GB, free: 65.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006122/0.544, allocations: 207.7 kB / 0.5454 GB, free: 65.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00297/0.547, allocations: 3.548 MB / 0.5489 GB, free: 61.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000846/0.5478, allocations: 79.91 kB / 0.549 GB, free: 61.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.865e-05/0.5479, allocations: 51.98 kB / 0.549 GB, free: 61.82 MB / 378.7 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005066/0.5484, allocations: 297.4 kB / 0.5493 GB, free: 61.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.5486, allocations: 122.5 kB / 0.5494 GB, free: 61.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.5499, allocations: 0.735 MB / 0.5502 GB, free: 60.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.55, allocations: 12.03 kB / 0.5502 GB, free: 60.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.55, allocations: 0 / 0.5502 GB, free: 60.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001018/0.551, allocations: 0.9568 MB / 0.5511 GB, free: 59.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002563/0.5536, allocations: 1.813 MB / 0.5529 GB, free: 57.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.5536, allocations: 4 kB / 0.5529 GB, free: 57.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004627/0.5541, allocations: 116 kB / 0.553 GB, free: 57.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003728/0.5545, allocations: 127.1 kB / 0.5531 GB, free: 57.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/0.5545, allocations: 16 kB / 0.5531 GB, free: 57.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/0.5568, allocations: 3.279 MB / 0.5563 GB, free: 53.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5569, allocations: 4.031 kB / 0.5563 GB, free: 53.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/0.5586, allocations: 1.1 MB / 0.5574 GB, free: 52.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004135/0.559, allocations: 247.6 kB / 0.5576 GB, free: 52.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.5592, allocations: 23.94 kB / 0.5577 GB, free: 52.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/0.5597, allocations: 51.91 kB / 0.5577 GB, free: 52.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.5598, allocations: 56.42 kB / 0.5578 GB, free: 52.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.373e-05/0.5599, allocations: 23.98 kB / 0.5578 GB, free: 52.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008674/0.5607, allocations: 0.7133 MB / 0.5585 GB, free: 51.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5607, allocations: 0 / 0.5585 GB, free: 51.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001105/0.5619, allocations: 356.1 kB / 0.5588 GB, free: 51.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004094/0.5623, allocations: 352.1 kB / 0.5592 GB, free: 50.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.564, allocations: 1.12 MB / 0.5603 GB, free: 49.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.564, allocations: 4 kB / 0.5603 GB, free: 49.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007232/0.5647, allocations: 0.5598 MB / 0.5608 GB, free: 49.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.5663, allocations: 308.2 kB / 0.5611 GB, free: 48.83 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00315/0.5694, allocations: 2.782 MB / 0.5638 GB, free: 46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.5699, allocations: 1.089 MB / 0.5649 GB, free: 44.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.5701, allocations: 83.44 kB / 0.565 GB, free: 44.8 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5701, allocations: 0 / 0.565 GB, free: 44.8 MB / 378.7 MB Notification: Performance of Templates: time 0.02498/0.5951, allocations: 26.98 MB / 0.5913 GB, free: 17.88 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches