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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7575/0.7575, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.421e-05/1.422e-05, allocations: 4 kB / 204.9 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1383, allocations: 31.99 MB / 236.8 MB, free: 5.426 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.481/1.62, allocations: 298.3 MB / 0.5226 GB, free: 9.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04058/1.66, allocations: 38.79 MB / 0.5605 GB, free: 2.906 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006194/1.661, allocations: 16 kB / 0.5605 GB, free: 2.891 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005387/1.662, allocations: 238.6 kB / 0.5607 GB, free: 2.656 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001015/1.663, allocations: 452.9 kB / 0.5612 GB, free: 2.211 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01976/1.682, allocations: 7.834 MB / 0.5688 GB, free: 10.38 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002164/1.685, allocations: 1.766 MB / 0.5706 GB, free: 8.605 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001017/1.686, allocations: 0.6947 MB / 0.5712 GB, free: 7.898 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007383/1.686, allocations: 0.5912 MB / 0.5718 GB, free: 7.305 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006253/1.687, allocations: 0.6452 MB / 0.5724 GB, free: 6.656 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001087/1.687, allocations: 60 kB / 0.5725 GB, free: 6.598 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02616/1.713, allocations: 18.07 MB / 0.5901 GB, free: 4.508 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003929/1.714, allocations: 242.8 kB / 0.5904 GB, free: 4.27 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006837/1.714, allocations: 0.6698 MB / 0.591 GB, free: 3.59 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01756/1.732, allocations: 9.756 MB / 0.6006 GB, free: 9.809 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/1.732, allocations: 0 / 0.6006 GB, free: 9.809 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.944e-06/1.732, allocations: 0 / 0.6006 GB, free: 9.809 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/1.732, allocations: 0 / 0.6006 GB, free: 9.809 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.006994/1.739, allocations: 2.682 MB / 0.6032 GB, free: 7.066 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/1.739, allocations: 8.031 kB / 0.6032 GB, free: 7.059 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002109/1.739, allocations: 190.5 kB / 0.6034 GB, free: 6.863 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/1.739, allocations: 162 kB / 0.6035 GB, free: 6.703 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006834/1.74, allocations: 0.615 MB / 0.6041 GB, free: 6.043 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/1.74, allocations: 141.5 kB / 0.6043 GB, free: 5.891 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/1.74, allocations: 116 kB / 0.6044 GB, free: 5.777 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002566/1.743, allocations: 1.544 MB / 0.6059 GB, free: 4.133 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.982e-05/1.743, allocations: 11.88 kB / 0.6059 GB, free: 4.121 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.734e-05/1.743, allocations: 48 kB / 0.6059 GB, free: 4.074 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.84e-05/1.743, allocations: 43.97 kB / 0.606 GB, free: 4.031 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002906/1.746, allocations: 1.351 MB / 0.6073 GB, free: 2.676 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.04074/1.787, allocations: 24.05 MB / 0.6308 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003146/1.79, allocations: 1.345 MB / 0.6321 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/1.792, allocations: 0.7486 MB / 0.6328 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2985/2.09, allocations: 77.95 MB / 0.7089 GB, free: 217.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001807/2.092, allocations: 0.8894 MB / 0.7098 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=176): time 2.545e-06/2.092, allocations: 0 / 0.7098 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=176): time 0.01128/2.103, allocations: 3.979 MB / 0.7137 GB, free: 216.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.228e-05/2.103, allocations: 222.8 kB / 0.7139 GB, free: 216.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007263/2.104, allocations: 0.7048 MB / 0.7146 GB, free: 216.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.112e-05/2.104, allocations: 52.7 kB / 0.7146 GB, free: 216.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/2.104, allocations: 480.4 kB / 0.7151 GB, free: 216.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003197/2.105, allocations: 0.5739 MB / 0.7157 GB, free: 215.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/2.105, allocations: 147.5 kB / 0.7158 GB, free: 215.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.682e-05/2.105, allocations: 304.6 kB / 0.7161 GB, free: 215.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/2.106, allocations: 0.5941 MB / 0.7167 GB, free: 215.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/2.108, allocations: 0.886 MB / 0.7175 GB, free: 215.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01234/2.12, allocations: 3.984 MB / 0.7214 GB, free: 214.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.227e-06/2.12, allocations: 2.938 kB / 0.7214 GB, free: 214.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005018/2.125, allocations: 2.346 MB / 0.7237 GB, free: 214.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/2.125, allocations: 33.61 kB / 0.7238 GB, free: 214.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/2.125, allocations: 7.875 kB / 0.7238 GB, free: 214.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005656/2.131, allocations: 1.793 MB / 0.7255 GB, free: 214.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/2.132, allocations: 272.1 kB / 0.7258 GB, free: 214.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002859/2.135, allocations: 2.769 MB / 0.7285 GB, free: 212.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/2.136, allocations: 234.8 kB / 0.7287 GB, free: 212.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-05/2.136, allocations: 56.31 kB / 0.7288 GB, free: 212.4 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.0004798/2.137, allocations: 320.1 kB / 0.7291 GB, free: 212.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/2.137, allocations: 119.3 kB / 0.7292 GB, free: 212.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004632/2.141, allocations: 2.898 MB / 0.732 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003831/2.145, allocations: 2.151 MB / 0.7341 GB, free: 211.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/2.145, allocations: 0 / 0.7341 GB, free: 211.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/2.145, allocations: 12.09 kB / 0.7341 GB, free: 211.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006959/2.152, allocations: 4.566 MB / 0.7386 GB, free: 208.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/2.152, allocations: 0 / 0.7386 GB, free: 208.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00152/2.154, allocations: 367.6 kB / 0.7389 GB, free: 208.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003268/2.157, allocations: 1.184 MB / 0.7401 GB, free: 207.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.684e-05/2.157, allocations: 39.97 kB / 0.7401 GB, free: 207.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003057/2.16, allocations: 3.918 MB / 0.7439 GB, free: 203.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/2.16, allocations: 8.016 kB / 0.7439 GB, free: 203.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005682/2.166, allocations: 3.335 MB / 0.7472 GB, free: 199.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000441/2.166, allocations: 366.6 kB / 0.7476 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/2.166, allocations: 35.98 kB / 0.7476 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/2.168, allocations: 149.2 kB / 0.7477 GB, free: 199.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002197/2.168, allocations: 133.8 kB / 0.7479 GB, free: 199.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.053e-05/2.168, allocations: 51.97 kB / 0.7479 GB, free: 199 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005265/2.168, allocations: 0.5342 MB / 0.7484 GB, free: 198.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.81e-07/2.168, allocations: 3.562 kB / 0.7484 GB, free: 198.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003212/2.172, allocations: 1.553 MB / 0.75 GB, free: 197.1 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.01106/2.183, allocations: 5.688 MB / 0.7555 GB, free: 191.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004509/2.187, allocations: 2.242 MB / 0.7577 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/2.187, allocations: 0 / 0.7577 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002541/2.19, allocations: 1.3 MB / 0.759 GB, free: 188.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/2.192, allocations: 435 kB / 0.7594 GB, free: 187.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02236/2.214, allocations: 14.5 MB / 0.7735 GB, free: 173 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005862/2.215, allocations: 1.26 MB / 0.7748 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006273/2.216, allocations: 128.6 kB / 0.7749 GB, free: 171.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005646/2.216, allocations: 0.589 MB / 0.7755 GB, free: 171 MB / 0.5762 GB Notification: Performance of SimCode: time 4.61e-07/2.216, allocations: 0 / 0.7755 GB, free: 171 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08564/2.302, allocations: 76.55 MB / 0.8502 GB, free: 95.72 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/2.302, allocations: 251.7 kB / 0.8505 GB, free: 95.46 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.739/7.041, allocations: 0 / 0.8505 GB, free: 95.46 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump2_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump2.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump2.pipe 2>&1)