Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8627/0.8627, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.741e-05/1.742e-05, allocations: 4 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1785, allocations: 31.98 MB / 236.8 MB, free: 5.43 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2): time 1.709/1.888, allocations: 297.3 MB / 0.5216 GB, free: 9.879 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.05469/1.943, allocations: 38.8 MB / 0.5595 GB, free: 3.211 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001137/1.944, allocations: 16 kB / 0.5595 GB, free: 3.195 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001086/1.945, allocations: 234.6 kB / 0.5597 GB, free: 2.965 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002208/1.947, allocations: 452.9 kB / 0.5602 GB, free: 2.52 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02589/1.973, allocations: 7.824 MB / 0.5678 GB, free: 10.69 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003112/1.976, allocations: 1.77 MB / 0.5695 GB, free: 8.918 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/1.977, allocations: 0.6957 MB / 0.5702 GB, free: 8.215 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009364/1.978, allocations: 0.5873 MB / 0.5708 GB, free: 7.625 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007408/1.979, allocations: 0.6414 MB / 0.5714 GB, free: 6.98 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/1.979, allocations: 63.94 kB / 0.5715 GB, free: 6.918 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03492/2.014, allocations: 18.07 MB / 0.5891 GB, free: 4.82 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005583/2.015, allocations: 246.8 kB / 0.5894 GB, free: 4.578 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009022/2.016, allocations: 0.662 MB / 0.59 GB, free: 3.906 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02383/2.04, allocations: 9.744 MB / 0.5995 GB, free: 10.14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/2.04, allocations: 3.984 kB / 0.5995 GB, free: 10.13 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.765e-06/2.04, allocations: 0 / 0.5995 GB, free: 10.13 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.773e-05/2.04, allocations: 0 / 0.5995 GB, free: 10.13 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 343 * Number of variables: 343 Notification: Performance of Generate backend data structure: time 0.008199/2.048, allocations: 2.686 MB / 0.6021 GB, free: 7.387 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/2.048, allocations: 8.031 kB / 0.6021 GB, free: 7.379 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002631/2.048, allocations: 166 kB / 0.6023 GB, free: 7.215 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007592/2.049, allocations: 0.615 MB / 0.6029 GB, free: 6.555 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/2.049, allocations: 141.5 kB / 0.603 GB, free: 6.402 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/2.049, allocations: 108 kB / 0.6031 GB, free: 6.297 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00289/2.052, allocations: 1.544 MB / 0.6047 GB, free: 4.652 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.132e-05/2.052, allocations: 4 kB / 0.6047 GB, free: 4.648 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/2.052, allocations: 51.88 kB / 0.6047 GB, free: 4.598 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.727e-05/2.052, allocations: 55.95 kB / 0.6048 GB, free: 4.543 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003173/2.056, allocations: 1.355 MB / 0.6061 GB, free: 3.184 MB / 494.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.04572/2.101, allocations: 24.04 MB / 0.6296 GB, free: 8.777 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003476/2.105, allocations: 1.36 MB / 0.6309 GB, free: 7.402 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/2.106, allocations: 0.7481 MB / 0.6316 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3518/2.458, allocations: 77.95 MB / 0.7077 GB, free: 218.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002043/2.46, allocations: 0.8859 MB / 0.7086 GB, free: 218.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=176): time 3.166e-06/2.46, allocations: 4 kB / 0.7086 GB, free: 218.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=176): time 0.01238/2.473, allocations: 3.972 MB / 0.7125 GB, free: 217.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/2.473, allocations: 225.5 kB / 0.7127 GB, free: 217.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008001/2.474, allocations: 0.7052 MB / 0.7134 GB, free: 217.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.199e-05/2.474, allocations: 45.58 kB / 0.7134 GB, free: 217.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002892/2.474, allocations: 488 kB / 0.7139 GB, free: 217.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003585/2.474, allocations: 0.573 MB / 0.7145 GB, free: 216.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/2.475, allocations: 145.6 kB / 0.7146 GB, free: 216.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.013e-05/2.475, allocations: 301.6 kB / 0.7149 GB, free: 216.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/2.476, allocations: 0.5966 MB / 0.7155 GB, free: 216.6 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/2.478, allocations: 0.885 MB / 0.7163 GB, free: 216.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01341/2.491, allocations: 3.98 MB / 0.7202 GB, free: 215.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/2.491, allocations: 2.75 kB / 0.7202 GB, free: 215.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005488/2.497, allocations: 2.346 MB / 0.7225 GB, free: 215.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/2.497, allocations: 33.52 kB / 0.7225 GB, free: 215.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/2.497, allocations: 9.062 kB / 0.7226 GB, free: 215.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006036/2.503, allocations: 1.791 MB / 0.7243 GB, free: 215.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/2.504, allocations: 275.8 kB / 0.7246 GB, free: 215.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003151/2.507, allocations: 2.773 MB / 0.7273 GB, free: 213.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/2.508, allocations: 236.6 kB / 0.7275 GB, free: 213.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.403e-05/2.509, allocations: 50.77 kB / 0.7275 GB, free: 213.5 MB / 0.5762 GB Warning: Assuming fixed start value for the following 2 variables: pIsat.Integrateur1.x0:DISCRETE(fixed = true protected = true ) type: Real Pulse1.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.pIsat.Integrateur1.x0,pIsat.Integrateur1.x0,pIsat.Integrateur1.reset.signal,$PRE.Pulse1.T0,dynamicReliefValve.clapper_is_free,Pulse1.yL.signal,Pulse1.T0,$whenCondition1,$whenCondition2,$whenCondition3,sourceP.C.b,Valve1.C2.b,Valve1.C1.a,sinkP.C.a,volumeA.Cs2.b,volumeA.Cs1.b,volumeA.Ce2.a,volumeA.Ce1.a,dynamicReliefValve.C2.b,dynamicReliefValve.C1.a,Valve.C2.b,Valve.C1.a,Tank.Cs1.b,Tank.Ce2.a,Tank.Cs2.b,Tank.Ce1.a,DynamicCentrifugalPump1.C2.b,DynamicCentrifugalPump1.C1.a,volumeA.Ce2.b,Tank.Cs1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(12,30), (2,6), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005399/2.509, allocations: 333.2 kB / 0.7279 GB, free: 213.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/2.509, allocations: 113 kB / 0.728 GB, free: 213.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005064/2.514, allocations: 2.897 MB / 0.7308 GB, free: 212.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004166/2.518, allocations: 2.152 MB / 0.7329 GB, free: 212.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/2.518, allocations: 5.312 kB / 0.7329 GB, free: 212.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/2.519, allocations: 13.64 kB / 0.7329 GB, free: 212.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007666/2.526, allocations: 4.56 MB / 0.7374 GB, free: 209.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/2.526, allocations: 32 / 0.7374 GB, free: 209.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00159/2.528, allocations: 367.6 kB / 0.7377 GB, free: 209.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003517/2.531, allocations: 1.184 MB / 0.7389 GB, free: 208.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/2.531, allocations: 40.61 kB / 0.7389 GB, free: 208.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003432/2.535, allocations: 3.923 MB / 0.7427 GB, free: 204 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/2.535, allocations: 0 / 0.7427 GB, free: 204 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006093/2.541, allocations: 3.338 MB / 0.746 GB, free: 200.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004931/2.542, allocations: 374.5 kB / 0.7464 GB, free: 200.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/2.542, allocations: 32.62 kB / 0.7464 GB, free: 200.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/2.543, allocations: 143.7 kB / 0.7465 GB, free: 200.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/2.543, allocations: 133.8 kB / 0.7467 GB, free: 200 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.664e-05/2.543, allocations: 51.97 kB / 0.7467 GB, free: 199.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005705/2.544, allocations: 0.5303 MB / 0.7472 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4e-07/2.544, allocations: 0 / 0.7472 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003718/2.547, allocations: 1.551 MB / 0.7487 GB, free: 198 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (Motor1.w,Motor1.Im,DynamicCentrifugalPump1.w,DynamicCentrifugalPump1.h,Tank.z,Tank.h,Shaft1.delta,dynamicReliefValve.z,dynamicReliefValve.v,dynamicReliefValve.Wdyn,volumeA.h,pIsat.Integrateur1.x) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,Pulse1.T0,Pulse1.yL.signal,dynamicReliefValve.clapper_is_free,pIsat.Integrateur1.x0) * Number of discrete states: 3 (Pulse1.yL.signal,Pulse1.T0,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 3 systems {(2,8), (7,20), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004841/2.552, allocations: 1.905 MB / 0.7506 GB, free: 196.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004863/2.557, allocations: 2.235 MB / 0.7528 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/2.557, allocations: 0 / 0.7528 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002762/2.56, allocations: 1.308 MB / 0.7541 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/2.562, allocations: 433.9 kB / 0.7545 GB, free: 192.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005145/2.567, allocations: 4.393 MB / 0.7588 GB, free: 188.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005964/2.568, allocations: 1.26 MB / 0.76 GB, free: 186.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005561/2.568, allocations: 130 kB / 0.7601 GB, free: 186.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002225/2.569, allocations: 87.41 kB / 0.7602 GB, free: 186.6 MB / 0.5762 GB Notification: Performance of SimCode: time 3.1e-07/2.569, allocations: 0 / 0.7602 GB, free: 186.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.07134/2.64, allocations: 61.47 MB / 0.8202 GB, free: 126.1 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2.pipe 2>&1) Environment - environmentSimulation: