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.001465/0.001465, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001654/0.001654, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.307/1.307, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009998/0.0009999, allocations: 51.55 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09206, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01014/0.1022, allocations: 9.577 MB / 361.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006385/0.1087, allocations: 3.127 MB / 364.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001684/0.1104, allocations: 31.88 kB / 364.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001825/0.1123, allocations: 0.5783 MB / 364.8 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00183/0.1141, allocations: 0.5619 MB / 365.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007385/0.1149, allocations: 311.5 kB / 365.7 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00188/0.1168, allocations: 1.763 MB / 367.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008034/0.1176, allocations: 0.6336 MB / 368.1 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008366/0.1184, allocations: 0.6732 MB / 368.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009092/0.1194, allocations: 0.739 MB / 369.5 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.1196, allocations: 160 kB / 369.7 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003672/0.1199, allocations: 196 kB / 369.8 MB, free: 1.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002504/0.1202, allocations: 334.7 kB / 370.2 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006813/0.1209, allocations: 0.8126 MB / 371 MB, free: 100 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.158/0.2789, allocations: 1.979 MB / 373 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.279, allocations: 1.188 kB / 373 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.279, allocations: 0 / 373 MB, free: 13.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.793e-05/0.279, allocations: 0 / 373 MB, free: 13.58 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.002888/0.2819, allocations: 1.791 MB / 374.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.282, allocations: 10.97 kB / 374.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005434/0.2825, allocations: 198.8 kB / 375 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.2838, allocations: 0.8317 MB / 375.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.2839, allocations: 113.7 kB / 375.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.284, allocations: 117 kB / 376 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001711/0.2857, allocations: 1.141 MB / 377.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/0.2858, allocations: 1.781 kB / 377.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.625e-05/0.2859, allocations: 50.34 kB / 377.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.2859, allocations: 25.69 kB / 377.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.2873, allocations: 0.7549 MB / 378 MB, free: 11.91 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.004849/0.2922, allocations: 3.915 MB / 381.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001507/0.2937, allocations: 0.5804 MB / 382.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.2942, allocations: 267.8 kB / 382.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.611e-05/0.2943, allocations: 12.61 kB / 382.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006399/0.2949, allocations: 297.5 kB / 383.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.224e-06/0.2949, allocations: 1.219 kB / 383.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004684/0.2996, allocations: 2.078 MB / 385.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.413e-05/0.2997, allocations: 481.4 kB / 385.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.3011, allocations: 1.104 MB / 386.7 MB, free: 7.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.3012, allocations: 38.95 kB / 386.7 MB, free: 7.672 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000411/0.3016, allocations: 0.6463 MB / 387.4 MB, free: 7.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.3017, allocations: 229 kB / 387.6 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/0.302, allocations: 206.7 kB / 387.8 MB, free: 6.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.988e-05/0.3021, allocations: 347.2 kB / 388.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004929/0.3026, allocations: 243.9 kB / 388.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006822/0.3033, allocations: 0.7095 MB / 389.1 MB, free: 5.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.3044, allocations: 0.9401 MB / 390 MB, free: 5.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.3044, allocations: 2.938 kB / 390 MB, free: 5.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001825/0.3062, allocations: 1.147 MB / 391.2 MB, free: 4.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.625e-05/0.3063, allocations: 66.31 kB / 391.3 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.3063, allocations: 11.22 kB / 391.3 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005526/0.3069, allocations: 169.5 kB / 391.4 MB, free: 4.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006377/0.3075, allocations: 201.3 kB / 391.6 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003211/0.3107, allocations: 3.88 MB / 395.5 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009583/0.3117, allocations: 64.31 kB / 395.6 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-05/0.3118, allocations: 50.09 kB / 395.6 MB, free: 1.051 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.0004182/0.3122, allocations: 297.2 kB / 395.9 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/0.3123, allocations: 124.7 kB / 396 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/0.3137, allocations: 0.7046 MB / 396.7 MB, free: 368 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.3137, allocations: 6.688 kB / 396.7 MB, free: 368 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3137, allocations: 3.125 kB / 396.7 MB, free: 368 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001299/0.315, allocations: 0.9586 MB / 397.7 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00285/0.3178, allocations: 1.789 MB / 399.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.3179, allocations: 3.5 kB / 399.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004704/0.3183, allocations: 106.8 kB / 399.6 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004264/0.3188, allocations: 129.8 kB / 399.7 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.963e-05/0.3188, allocations: 19.86 kB / 399.7 MB, free: 14.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003245/0.3221, allocations: 3.592 MB / 403.3 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.3221, allocations: 2.719 kB / 403.3 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.3238, allocations: 1.048 MB / 404.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004253/0.3242, allocations: 253.6 kB / 404.6 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.3243, allocations: 21.31 kB / 404.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006171/0.325, allocations: 32.62 kB / 404.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.3251, allocations: 64.94 kB / 404.8 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.534e-05/0.3252, allocations: 19.28 kB / 404.8 MB, free: 9.887 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009167/0.3261, allocations: 0.7459 MB / 405.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.082e-06/0.3261, allocations: 0 / 405.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001065/0.3272, allocations: 312.3 kB / 405.8 MB, free: 9.434 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.0002371/0.3274, allocations: 144.6 kB / 406 MB, free: 9.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.3291, allocations: 1.095 MB / 407.1 MB, free: 8.582 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3291, allocations: 1.812 kB / 407.1 MB, free: 8.582 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008437/0.33, allocations: 0.5481 MB / 407.6 MB, free: 8.023 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.3313, allocations: 334.1 kB / 407.9 MB, free: 7.711 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/0.3344, allocations: 2.214 MB / 410.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005874/0.335, allocations: 1.089 MB / 411.2 MB, free: 4.352 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004651/0.3354, allocations: 153.8 kB / 411.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.3356, allocations: 79.44 kB / 411.5 MB, free: 4.121 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3356, allocations: 0 / 411.5 MB, free: 4.121 MB / 318.1 MB Notification: Performance of Templates: time 0.0282/0.3638, allocations: 17.93 MB / 429.4 MB, free: 2.512 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 -s gbode -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