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.001495/0.001495, allocations: 106.3 kB / 16.5 MB, free: 6.707 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.001758/0.001758, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.361/1.361, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 51.45 kB / 300 MB, free: 6.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.09807, allocations: 49.44 MB / 349.4 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01014/0.1083, allocations: 9.534 MB / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005045/0.1133, allocations: 3.104 MB / 362 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001207/0.1146, allocations: 27.94 kB / 362.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.1164, allocations: 0.5166 MB / 362.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00178/0.1182, allocations: 0.4926 MB / 363.1 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009261/0.1191, allocations: 279.6 kB / 363.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002162/0.1213, allocations: 1.668 MB / 365 MB, free: 5.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007769/0.1221, allocations: 0.5532 MB / 365.6 MB, free: 4.574 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007292/0.1228, allocations: 0.6069 MB / 366.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007384/0.1236, allocations: 0.7115 MB / 366.9 MB, free: 3.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001732/0.1237, allocations: 108 kB / 367 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003637/0.1241, allocations: 144 kB / 367.1 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002264/0.1244, allocations: 282.8 kB / 367.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006993/0.1251, allocations: 0.7618 MB / 368.2 MB, free: 1.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001659/0.1267, allocations: 1.904 MB / 370.1 MB, free: 52 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.1268, allocations: 4 kB / 370.1 MB, free: 48 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1268, allocations: 3.938 kB / 370.1 MB, free: 44 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.1268, allocations: 0 / 370.1 MB, free: 44 kB / 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.1723/0.2991, allocations: 1.794 MB / 371.9 MB, free: 25.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.2992, allocations: 10 kB / 371.9 MB, free: 25.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006105/0.2998, allocations: 199.6 kB / 372.1 MB, free: 25.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.301, allocations: 0.8197 MB / 372.9 MB, free: 24.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.3011, allocations: 116.4 kB / 373 MB, free: 24.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.3013, allocations: 113.6 kB / 373.1 MB, free: 24.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/0.3032, allocations: 1.144 MB / 374.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/0.3033, allocations: 6.688 kB / 374.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.794e-05/0.3033, allocations: 48.03 kB / 374.3 MB, free: 24.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.074e-05/0.3034, allocations: 27.03 kB / 374.3 MB, free: 24.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.3049, allocations: 0.7508 MB / 375.1 MB, free: 23.9 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.005364/0.3103, allocations: 3.937 MB / 379 MB, free: 21.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.3118, allocations: 0.5994 MB / 379.6 MB, free: 21.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004966/0.3123, allocations: 266.7 kB / 379.9 MB, free: 21.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.183e-05/0.3123, allocations: 9.938 kB / 379.9 MB, free: 21.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006865/0.313, allocations: 294.8 kB / 380.2 MB, free: 21.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.555e-06/0.3131, allocations: 4 kB / 380.2 MB, free: 21.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004655/0.3177, allocations: 2.073 MB / 382.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.3178, allocations: 478.9 kB / 382.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/0.3194, allocations: 1.102 MB / 383.8 MB, free: 18.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.305e-05/0.3194, allocations: 39.47 kB / 383.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000405/0.3198, allocations: 0.6537 MB / 384.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.32, allocations: 228.4 kB / 384.8 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.3202, allocations: 196.8 kB / 384.9 MB, free: 17.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.807e-05/0.3203, allocations: 341.9 kB / 385.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005268/0.3208, allocations: 245.4 kB / 385.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007212/0.3216, allocations: 0.7125 MB / 386.2 MB, free: 16.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.3227, allocations: 0.9415 MB / 387.2 MB, free: 16.13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3227, allocations: 4.516 kB / 387.2 MB, free: 16.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001944/0.3247, allocations: 1.14 MB / 388.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.328e-05/0.3248, allocations: 75.17 kB / 388.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.3248, allocations: 15.16 kB / 388.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005627/0.3253, allocations: 166.1 kB / 388.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006518/0.326, allocations: 200.8 kB / 388.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003168/0.3292, allocations: 3.551 MB / 392.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.3303, allocations: 72.83 kB / 392.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.445e-05/0.3304, allocations: 49.81 kB / 392.4 MB, free: 12.09 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.0004224/0.3308, allocations: 296.8 kB / 392.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.3309, allocations: 128.4 kB / 392.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001243/0.3322, allocations: 0.7018 MB / 393.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3322, allocations: 7.906 kB / 393.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.3322, allocations: 0 / 393.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001129/0.3333, allocations: 0.9608 MB / 394.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002491/0.3358, allocations: 1.796 MB / 396.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.3359, allocations: 1.219 kB / 396.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004831/0.3364, allocations: 109.7 kB / 396.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004003/0.3368, allocations: 131.7 kB / 396.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.653e-05/0.3368, allocations: 17.12 kB / 396.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002507/0.3393, allocations: 3.283 MB / 399.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3393, allocations: 3.875 kB / 399.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.3409, allocations: 1.044 MB / 400.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003825/0.3413, allocations: 255 kB / 401.1 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.3414, allocations: 19.92 kB / 401.2 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006057/0.342, allocations: 43.53 kB / 401.2 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.3422, allocations: 59.86 kB / 401.3 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-05/0.3422, allocations: 23.72 kB / 401.3 MB, free: 5.133 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007955/0.343, allocations: 0.7446 MB / 402 MB, free: 4.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.343, allocations: 4 kB / 402 MB, free: 4.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001039/0.3441, allocations: 312 kB / 402.3 MB, free: 4.355 MB / 302.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.0002284/0.3443, allocations: 142.2 kB / 402.5 MB, free: 4.207 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.346, allocations: 1.082 MB / 403.6 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3461, allocations: 0 / 403.6 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00077/0.3468, allocations: 0.5477 MB / 404.1 MB, free: 2.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/0.3482, allocations: 312 kB / 404.4 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.3513, allocations: 2.679 MB / 407.1 MB, free: 15.49 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006906/0.3521, allocations: 1.089 MB / 408.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005953/0.3527, allocations: 145.8 kB / 408.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.3528, allocations: 87.38 kB / 408.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3528, allocations: 0 / 408.4 MB, free: 14.14 MB / 318.1 MB Notification: Performance of Templates: time 0.02644/0.3793, allocations: 16.95 MB / 425.4 MB, free: 13.43 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/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