Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.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.TestDynamicCentrifugalPump1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump1",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.7554/0.7554, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.445e-05/1.447e-05, allocations: 4 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1271, allocations: 31.98 MB / 236.8 MB, free: 5.379 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.TestDynamicCentrifugalPump1): time 1.423/1.55, allocations: 295.7 MB / 0.52 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03385/1.584, allocations: 33.66 MB / 0.5529 GB, free: 10.6 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001747/1.584, allocations: 4 kB / 0.5529 GB, free: 10.59 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00032/1.585, allocations: 123.2 kB / 0.553 GB, free: 10.47 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002627/1.585, allocations: 162.8 kB / 0.5532 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01445/1.599, allocations: 6.653 MB / 0.5597 GB, free: 3.652 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007078/1.6, allocations: 0.7596 MB / 0.5604 GB, free: 2.887 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003595/1.601, allocations: 280.8 kB / 0.5607 GB, free: 2.609 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003528/1.601, allocations: 282.8 kB / 0.5609 GB, free: 2.332 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/1.601, allocations: 310.5 kB / 0.5612 GB, free: 2.027 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.327e-05/1.601, allocations: 32 kB / 0.5613 GB, free: 1.996 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02056/1.622, allocations: 14.99 MB / 0.5759 GB, free: 2.988 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/1.622, allocations: 107.5 kB / 0.576 GB, free: 2.883 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002851/1.622, allocations: 312.1 kB / 0.5763 GB, free: 2.57 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/1.633, allocations: 7.828 MB / 0.5839 GB, free: 10.72 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/1.633, allocations: 4 kB / 0.584 GB, free: 10.72 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.322e-06/1.633, allocations: 0 / 0.584 GB, free: 10.72 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/1.633, allocations: 0 / 0.584 GB, free: 10.72 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.004897/1.638, allocations: 1.801 MB / 0.5857 GB, free: 8.867 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/1.638, allocations: 12.03 kB / 0.5857 GB, free: 8.855 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/1.638, allocations: 90.52 kB / 0.5858 GB, free: 8.758 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/1.638, allocations: 71.09 kB / 0.5859 GB, free: 8.688 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/1.639, allocations: 354.3 kB / 0.5862 GB, free: 8.301 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.929e-05/1.639, allocations: 66.64 kB / 0.5863 GB, free: 8.23 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.427e-05/1.639, allocations: 54.62 kB / 0.5863 GB, free: 8.18 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/1.64, allocations: 0.7419 MB / 0.5871 GB, free: 7.395 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/1.64, allocations: 0 / 0.5871 GB, free: 7.395 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.297e-05/1.64, allocations: 23.98 kB / 0.5871 GB, free: 7.371 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/1.64, allocations: 19.94 kB / 0.5871 GB, free: 7.352 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/1.642, allocations: 0.7532 MB / 0.5878 GB, free: 6.602 MB / 478.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.003021/1.645, allocations: 3.284 MB / 0.591 GB, free: 3.008 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002364/1.648, allocations: 0.8013 MB / 0.5918 GB, free: 2.203 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009416/1.649, allocations: 394.3 kB / 0.5922 GB, free: 1.816 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07561/1.724, allocations: 44.47 MB / 0.6356 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/1.725, allocations: 442.5 kB / 0.636 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=77): time 2.324e-06/1.725, allocations: 4 kB / 0.636 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of matching and sorting (n=77): time 0.006891/1.732, allocations: 2.18 MB / 0.6382 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/1.732, allocations: 55.84 kB / 0.6382 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/1.733, allocations: 353.4 kB / 0.6386 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/1.733, allocations: 33.7 kB / 0.6386 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/1.733, allocations: 244.7 kB / 0.6388 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/1.733, allocations: 260.1 kB / 0.6391 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.574e-05/1.733, allocations: 69.67 kB / 0.6391 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001128/1.733, allocations: 370.7 kB / 0.6395 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009136/1.734, allocations: 325.5 kB / 0.6398 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009852/1.735, allocations: 486.1 kB / 0.6403 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007314/1.743, allocations: 2.092 MB / 0.6423 GB, free: 8.676 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/1.743, allocations: 0 / 0.6423 GB, free: 8.676 MB / 0.5294 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004384/1.747, allocations: 1.445 MB / 0.6437 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/1.747, allocations: 8.312 kB / 0.6437 GB, free: 7.211 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/1.747, allocations: 11.94 kB / 0.6437 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003299/1.75, allocations: 0.96 MB / 0.6447 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007898/1.751, allocations: 183.7 kB / 0.6449 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001866/1.753, allocations: 1.731 MB / 0.6466 GB, free: 4.273 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006038/1.754, allocations: 127.2 kB / 0.6467 GB, free: 4.148 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.653e-05/1.754, allocations: 27.98 kB / 0.6467 GB, free: 4.121 MB / 0.5294 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.pulse.T0,pulse.T0,Valve.C2.b,Valve.C1.a,Tank.Cs1.b,Tank.Ce2.a,Tank.Cs2.b,Tank.Ce1.a,DynamicCentrifugalPump1.C2.b,DynamicCentrifugalPump1.C1.a,Tank.Cs1.a,Tank.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,22), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002378/1.754, allocations: 194.1 kB / 0.6469 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.443e-05/1.754, allocations: 51.34 kB / 0.6469 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002935/1.757, allocations: 1.464 MB / 0.6484 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002552/1.759, allocations: 1.181 MB / 0.6495 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/1.759, allocations: 7.922 kB / 0.6495 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/1.759, allocations: 3.984 kB / 0.6495 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004122/1.764, allocations: 2.398 MB / 0.6519 GB, free: 14.72 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/1.764, allocations: 0 / 0.6519 GB, free: 14.72 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/1.765, allocations: 231.8 kB / 0.6521 GB, free: 14.49 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00165/1.766, allocations: 0.6157 MB / 0.6527 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.309e-05/1.766, allocations: 19.98 kB / 0.6527 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002171/1.769, allocations: 2.979 MB / 0.6556 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.769, allocations: 0 / 0.6556 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00376/1.772, allocations: 1.835 MB / 0.6574 GB, free: 8.832 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/1.773, allocations: 200 kB / 0.6576 GB, free: 8.617 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.997e-05/1.773, allocations: 16 kB / 0.6576 GB, free: 8.602 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005737/1.773, allocations: 83.92 kB / 0.6577 GB, free: 8.52 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/1.773, allocations: 56.91 kB / 0.6578 GB, free: 8.465 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.271e-05/1.773, allocations: 31.92 kB / 0.6578 GB, free: 8.434 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001887/1.774, allocations: 235.2 kB / 0.658 GB, free: 8.203 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/1.774, allocations: 0 / 0.658 GB, free: 8.203 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002512/1.776, allocations: 1.175 MB / 0.6592 GB, free: 7.027 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (DynamicCentrifugalPump1.w,DynamicCentrifugalPump1.h,Tank.z,Tank.h,Shaft1.delta) * Number of discrete variables: 2 ($whenCondition1,pulse.T0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(5,16), (1,2), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007523/1.784, allocations: 3.89 MB / 0.663 GB, free: 3.105 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002779/1.786, allocations: 1.153 MB / 0.6641 GB, free: 1.941 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/1.786, allocations: 0 / 0.6641 GB, free: 1.941 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001618/1.788, allocations: 0.7149 MB / 0.6648 GB, free: 1.211 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009823/1.789, allocations: 190.4 kB / 0.665 GB, free: 1.027 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/1.802, allocations: 7.488 MB / 0.6723 GB, free: 9.324 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/1.802, allocations: 0.9271 MB / 0.6732 GB, free: 8.371 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002628/1.803, allocations: 64.41 kB / 0.6732 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/1.803, allocations: 255.3 kB / 0.6735 GB, free: 8.059 MB / 0.5606 GB Notification: Performance of SimCode: time 2.81e-07/1.803, allocations: 4 kB / 0.6735 GB, free: 8.055 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.213/2.016, allocations: 53.8 MB / 0.726 GB, free: 203.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/2.016, allocations: 242.7 kB / 0.7263 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.873/5.889, allocations: 0 / 0.7263 GB, free: 202.9 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump1_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump1.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.pipe 2>&1)