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.001467/0.001472, allocations: 196.7 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.6 MB / 244.3 MB, free: 8.289 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006506/0.0006506, allocations: 104.1 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001906/0.0001906, allocations: 15.98 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2334, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.00747/0.2409, allocations: 8.499 MB / 416 MB, free: 19.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005191/0.2462, allocations: 2.904 MB / 418.9 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000799/0.247, allocations: 31.88 kB / 418.9 MB, free: 16.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001244/0.2483, allocations: 485.2 kB / 419.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.2493, allocations: 476.5 kB / 419.9 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005421/0.2499, allocations: 219.7 kB / 420.1 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001159/0.251, allocations: 1.584 MB / 421.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006464/0.2517, allocations: 0.4916 MB / 422.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006734/0.2524, allocations: 0.5602 MB / 422.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005444/0.2529, allocations: 0.6299 MB / 423.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001249/0.2531, allocations: 87.94 kB / 423.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003381/0.2534, allocations: 124 kB / 423.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.2536, allocations: 239 kB / 423.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002207/0.2538, allocations: 313 kB / 424.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009663/0.2548, allocations: 1.511 MB / 425.6 MB, free: 9.652 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.2548, allocations: 0 / 425.6 MB, free: 9.652 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.2548, allocations: 0 / 425.6 MB, free: 9.652 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.2548, allocations: 0 / 425.6 MB, free: 9.652 MB / 298.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.002461/0.2573, allocations: 1.563 MB / 427.2 MB, free: 8.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.2574, allocations: 8.031 kB / 427.2 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000529/0.2579, allocations: 206.1 kB / 427.4 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.259, allocations: 0.7853 MB / 428.2 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.2591, allocations: 119.8 kB / 428.3 MB, free: 6.852 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.2593, allocations: 111.9 kB / 428.4 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.2609, allocations: 1.139 MB / 429.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.007e-05/0.2609, allocations: 4 kB / 429.5 MB, free: 5.508 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.241e-05/0.261, allocations: 48 kB / 429.6 MB, free: 5.461 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.2611, allocations: 31.98 kB / 429.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.2624, allocations: 0.7652 MB / 430.4 MB, free: 4.664 MB / 298.7 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.004277/0.2666, allocations: 3.961 MB / 434.3 MB, free: 0.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.268, allocations: 0.591 MB / 434.9 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004691/0.2685, allocations: 274.9 kB / 435.2 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.2685, allocations: 17.06 kB / 435.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005906/0.2691, allocations: 307 kB / 435.5 MB, free: 15.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 2.524e-06/0.2691, allocations: 0 / 435.5 MB, free: 15.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.004178/0.2733, allocations: 2.116 MB / 437.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001694/0.2735, allocations: 483.2 kB / 438.1 MB, free: 12.51 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.2748, allocations: 1.09 MB / 439.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.937e-05/0.2748, allocations: 41.69 kB / 439.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00044/0.2753, allocations: 0.6467 MB / 439.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.2754, allocations: 232.7 kB / 440.1 MB, free: 10.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/0.2755, allocations: 24 kB / 440.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.2756, allocations: 341.9 kB / 440.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005109/0.2761, allocations: 254.5 kB / 440.7 MB, free: 9.859 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008593/0.277, allocations: 0.7208 MB / 441.4 MB, free: 8.934 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006999/0.2777, allocations: 406.4 kB / 441.8 MB, free: 8.523 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2777, allocations: 0 / 441.8 MB, free: 8.523 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001835/0.2796, allocations: 1.142 MB / 443 MB, free: 7.355 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.434e-05/0.2796, allocations: 63.41 kB / 443 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.2797, allocations: 16 kB / 443.1 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005736/0.2802, allocations: 176.8 kB / 443.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006552/0.2809, allocations: 207.7 kB / 443.4 MB, free: 6.887 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004149/0.2851, allocations: 3.536 MB / 447 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009117/0.286, allocations: 75.95 kB / 447 MB, free: 3.012 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-05/0.2861, allocations: 51.94 kB / 447.1 MB, free: 2.961 MB / 314.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 (112): * Single equations (assignments): 108 * 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.0005029/0.2866, allocations: 293.6 kB / 447.4 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.2867, allocations: 122.5 kB / 447.5 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/0.2882, allocations: 0.7272 MB / 448.2 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.2882, allocations: 16.03 kB / 448.2 MB, free: 1.777 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2882, allocations: 0 / 448.2 MB, free: 1.777 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001379/0.2896, allocations: 0.9685 MB / 449.2 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.2923, allocations: 1.813 MB / 451 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.2923, allocations: 0 / 451 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004653/0.2928, allocations: 115.8 kB / 451.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004126/0.2932, allocations: 122.9 kB / 451.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.973e-05/0.2933, allocations: 23.98 kB / 451.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003033/0.2963, allocations: 3.274 MB / 454.5 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.2963, allocations: 12.03 kB / 454.6 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/0.2981, allocations: 1.069 MB / 455.6 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003659/0.2985, allocations: 247.6 kB / 455.9 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.2986, allocations: 20 kB / 455.9 MB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006044/0.2992, allocations: 59.84 kB / 456 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.2994, allocations: 56.42 kB / 456 MB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.419e-05/0.2994, allocations: 20 kB / 456 MB, free: 9.469 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009992/0.3004, allocations: 0.7367 MB / 456.8 MB, free: 8.727 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3004, allocations: 0 / 456.8 MB, free: 8.727 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001035/0.3015, allocations: 308 kB / 457.1 MB, free: 8.426 MB / 330.7 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 (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.0002627/0.3017, allocations: 131.2 kB / 457.2 MB, free: 8.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001965/0.3037, allocations: 1.104 MB / 458.3 MB, free: 7.137 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3037, allocations: 4 kB / 458.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008813/0.3046, allocations: 0.5481 MB / 458.8 MB, free: 6.555 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.306, allocations: 317.7 kB / 459.2 MB, free: 6.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.3098, allocations: 2.756 MB / 461.9 MB, free: 3.445 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006926/0.3105, allocations: 1.086 MB / 463 MB, free: 2.332 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.3107, allocations: 79.44 kB / 463.1 MB, free: 2.254 MB / 330.7 MB Notification: Performance of SimCode: time 6.72e-07/0.3107, allocations: 0 / 463.1 MB, free: 2.254 MB / 330.7 MB Notification: Performance of Templates: time 0.03231/0.343, allocations: 26.04 MB / 489.1 MB, free: 8.297 MB / 362.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/jenkins/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