Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001217/0.001217, allocations: 176.8 kB / 16.41 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.305/1.305, allocations: 205.4 MB / 222.5 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007002/0.0007002, allocations: 96.86 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.0002731, allocations: 11.98 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2498, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01113/0.261, allocations: 8.447 MB / 383 MB, free: 38.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007383/0.2684, allocations: 2.867 MB / 385.9 MB, free: 36.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002394/0.2709, allocations: 33.69 kB / 385.9 MB, free: 36.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00232/0.2732, allocations: 480.2 kB / 386.4 MB, free: 36.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002825/0.2761, allocations: 483.2 kB / 386.8 MB, free: 35.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.2774, allocations: 220.1 kB / 387.1 MB, free: 35.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003703/0.2811, allocations: 1.582 MB / 388.6 MB, free: 34.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001489/0.2826, allocations: 0.4918 MB / 389.1 MB, free: 34.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001636/0.2843, allocations: 0.5602 MB / 389.7 MB, free: 33.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001553/0.2858, allocations: 0.6261 MB / 390.3 MB, free: 33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004939/0.2864, allocations: 84 kB / 390.4 MB, free: 32.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009951/0.2874, allocations: 131.9 kB / 390.5 MB, free: 32.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003703/0.2877, allocations: 242.9 kB / 390.8 MB, free: 32.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008154/0.2886, allocations: 305 kB / 391.1 MB, free: 32.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001705/0.2903, allocations: 1.511 MB / 392.6 MB, free: 30.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.809e-06/0.2903, allocations: 4 kB / 392.6 MB, free: 30.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.2903, allocations: 0 / 392.6 MB, free: 30.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.536e-05/0.2904, allocations: 0 / 392.6 MB, free: 30.73 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.00262/0.293, allocations: 1.563 MB / 394.1 MB, free: 29.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.293, allocations: 8.031 kB / 394.1 MB, free: 29.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005598/0.2936, allocations: 210 kB / 394.4 MB, free: 28.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.2947, allocations: 0.7815 MB / 395.1 MB, free: 28.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.2949, allocations: 119.8 kB / 395.3 MB, free: 27.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.295, allocations: 111.9 kB / 395.4 MB, free: 27.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.2967, allocations: 1.142 MB / 396.5 MB, free: 26.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.2968, allocations: 7.984 kB / 396.5 MB, free: 26.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.12e-05/0.2969, allocations: 48 kB / 396.6 MB, free: 26.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.2969, allocations: 27.95 kB / 396.6 MB, free: 26.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.2983, allocations: 0.773 MB / 397.4 MB, free: 25.73 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.004663/0.303, allocations: 3.953 MB / 401.3 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.3044, allocations: 0.6072 MB / 401.9 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004426/0.3048, allocations: 266.9 kB / 402.2 MB, free: 20.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.48e-05/0.3049, allocations: 8.562 kB / 402.2 MB, free: 20.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006157/0.3055, allocations: 307 kB / 402.5 MB, free: 20.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 1.974e-06/0.3055, allocations: 0 / 402.5 MB, free: 20.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.004028/0.3095, allocations: 2.124 MB / 404.6 MB, free: 18.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001734/0.3097, allocations: 475.2 kB / 405.1 MB, free: 17.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.3109, allocations: 1.097 MB / 406.2 MB, free: 16.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.311, allocations: 45.7 kB / 406.2 MB, free: 16.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003746/0.3113, allocations: 0.6428 MB / 406.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.3115, allocations: 232.7 kB / 407.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.3115, allocations: 20 kB / 407.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.494e-05/0.3116, allocations: 341.9 kB / 407.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004679/0.3121, allocations: 254.5 kB / 407.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007168/0.3128, allocations: 0.713 MB / 408.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005974/0.3134, allocations: 414.4 kB / 408.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3134, allocations: 4 kB / 408.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001616/0.3151, allocations: 1.134 MB / 409.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.3151, allocations: 65.11 kB / 410 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.3152, allocations: 12 kB / 410 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005519/0.3157, allocations: 165.8 kB / 410.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006163/0.3163, allocations: 215.6 kB / 410.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003295/0.3196, allocations: 3.563 MB / 414 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009162/0.3206, allocations: 79.98 kB / 414 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.732e-05/0.3206, allocations: 44 kB / 414.1 MB, free: 8.023 MB / 298.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.0004732/0.3211, allocations: 293.6 kB / 414.4 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.3213, allocations: 126.5 kB / 414.5 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.3226, allocations: 0.7194 MB / 415.2 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.3226, allocations: 8 kB / 415.2 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3226, allocations: 0 / 415.2 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00118/0.3238, allocations: 0.9686 MB / 416.2 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.3262, allocations: 1.81 MB / 418 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.3262, allocations: 8 kB / 418 MB, free: 3.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004415/0.3267, allocations: 112.1 kB / 418.1 MB, free: 3.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003803/0.3271, allocations: 125.6 kB / 418.2 MB, free: 3.641 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/0.3271, allocations: 23.98 kB / 418.3 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002605/0.3297, allocations: 3.275 MB / 421.5 MB, free: 76 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3297, allocations: 4.031 kB / 421.5 MB, free: 72 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.3316, allocations: 1.061 MB / 422.6 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004199/0.332, allocations: 263.5 kB / 422.9 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.3322, allocations: 20 kB / 422.9 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006346/0.3328, allocations: 39.97 kB / 422.9 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.333, allocations: 60.41 kB / 423 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/0.333, allocations: 28.12 kB / 423 MB, free: 14.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001093/0.3341, allocations: 0.7328 MB / 423.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.144e-06/0.3341, allocations: 0 / 423.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001235/0.3354, allocations: 323.9 kB / 424 MB, free: 13.49 MB / 314.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.0002816/0.3357, allocations: 131.2 kB / 424.2 MB, free: 13.35 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.3377, allocations: 1.107 MB / 425.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.3377, allocations: 4 kB / 425.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000909/0.3387, allocations: 0.5491 MB / 425.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.3401, allocations: 315.8 kB / 426.1 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004207/0.3443, allocations: 2.75 MB / 428.9 MB, free: 8.516 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007371/0.3451, allocations: 1.082 MB / 430 MB, free: 7.402 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.3453, allocations: 83.42 kB / 430.1 MB, free: 7.32 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3453, allocations: 0 / 430.1 MB, free: 7.32 MB / 314.7 MB Notification: Performance of Templates: time 0.03509/0.3804, allocations: 26.03 MB / 456.1 MB, free: 13.27 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches