Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump.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.TestDynamicCentrifugalPump,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump",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.7732/0.7732, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.572e-05/1.573e-05, allocations: 4 kB / 204.9 MB, free: 9.98 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1314, allocations: 31.99 MB / 236.8 MB, free: 5.402 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.TestDynamicCentrifugalPump): time 1.456/1.587, allocations: 295.8 MB / 0.5201 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03501/1.622, allocations: 33.7 MB / 0.5531 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/1.622, allocations: 4 kB / 0.5531 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003746/1.623, allocations: 115.3 kB / 0.5532 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003294/1.623, allocations: 166.7 kB / 0.5533 GB, free: 10.08 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01641/1.639, allocations: 6.668 MB / 0.5598 GB, free: 3.406 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000844/1.64, allocations: 0.7992 MB / 0.5606 GB, free: 2.602 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003745/1.641, allocations: 282.1 kB / 0.5609 GB, free: 2.324 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003574/1.641, allocations: 294.7 kB / 0.5612 GB, free: 2.035 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003501/1.641, allocations: 326.5 kB / 0.5615 GB, free: 1.715 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.988e-05/1.641, allocations: 36 kB / 0.5615 GB, free: 1.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02243/1.664, allocations: 14.99 MB / 0.5762 GB, free: 2.672 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/1.664, allocations: 111.5 kB / 0.5763 GB, free: 2.562 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003314/1.664, allocations: 328 kB / 0.5766 GB, free: 2.234 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01414/1.679, allocations: 7.863 MB / 0.5843 GB, free: 10.35 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/1.679, allocations: 4 kB / 0.5843 GB, free: 10.35 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.573e-06/1.679, allocations: 0 / 0.5843 GB, free: 10.35 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/1.679, allocations: 0 / 0.5843 GB, free: 10.35 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005171/1.684, allocations: 1.857 MB / 0.5861 GB, free: 8.434 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/1.684, allocations: 8.031 kB / 0.5861 GB, free: 8.426 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/1.684, allocations: 98.52 kB / 0.5862 GB, free: 8.32 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/1.684, allocations: 75.09 kB / 0.5862 GB, free: 8.246 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/1.684, allocations: 372.5 kB / 0.5866 GB, free: 7.84 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.91e-05/1.685, allocations: 70.7 kB / 0.5867 GB, free: 7.766 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.933e-05/1.685, allocations: 48 kB / 0.5867 GB, free: 7.719 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/1.686, allocations: 0.7497 MB / 0.5874 GB, free: 6.93 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/1.686, allocations: 4 kB / 0.5874 GB, free: 6.926 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.052e-05/1.686, allocations: 16.98 kB / 0.5875 GB, free: 6.91 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/1.686, allocations: 23.92 kB / 0.5875 GB, free: 6.887 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/1.688, allocations: 0.7379 MB / 0.5882 GB, free: 6.148 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.003125/1.691, allocations: 3.334 MB / 0.5915 GB, free: 2.512 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002299/1.694, allocations: 0.8085 MB / 0.5923 GB, free: 1.695 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000927/1.694, allocations: 390.3 kB / 0.5926 GB, free: 1.312 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07829/1.773, allocations: 44.46 MB / 0.636 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/1.774, allocations: 467.7 kB / 0.6365 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=80): time 2.805e-06/1.774, allocations: 3.938 kB / 0.6365 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of matching and sorting (n=80): time 0.007097/1.781, allocations: 2.121 MB / 0.6386 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.05e-05/1.781, allocations: 111.2 kB / 0.6387 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003644/1.782, allocations: 369.5 kB / 0.639 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.349e-05/1.782, allocations: 37.7 kB / 0.6391 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/1.782, allocations: 256.6 kB / 0.6393 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/1.782, allocations: 271.9 kB / 0.6396 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.539e-05/1.782, allocations: 81.66 kB / 0.6396 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001384/1.782, allocations: 366.7 kB / 0.64 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009333/1.783, allocations: 321.5 kB / 0.6403 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/1.784, allocations: 489.2 kB / 0.6408 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007811/1.792, allocations: 2.19 MB / 0.6429 GB, free: 7.988 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/1.792, allocations: 4 kB / 0.6429 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003162/1.795, allocations: 1.267 MB / 0.6441 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.714e-05/1.795, allocations: 37.64 kB / 0.6442 GB, free: 6.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/1.795, allocations: 8.062 kB / 0.6442 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003443/1.799, allocations: 0.975 MB / 0.6451 GB, free: 5.672 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000788/1.8, allocations: 179.7 kB / 0.6453 GB, free: 5.496 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/1.802, allocations: 1.762 MB / 0.647 GB, free: 3.684 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006685/1.802, allocations: 131.1 kB / 0.6472 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.309e-05/1.802, allocations: 27.98 kB / 0.6472 GB, free: 3.527 MB / 0.5294 GB Warning: Assuming fixed start value for the following 1 variables: Pulse1.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 14 (Valve.C2.b,Valve.C1.a,Tank.Cs1.b,Tank.Ce2.a,Tank.Cs2.b,Tank.Ce1.a,DynamicCentrifugalPump1.C2.b,DynamicCentrifugalPump1.C1.a,$PRE.Pulse1.T0,Pulse1.yL.signal,Pulse1.T0,$whenCondition1,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 (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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 {(8,25), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003278/1.803, allocations: 220.9 kB / 0.6474 GB, free: 3.301 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.666e-05/1.803, allocations: 55.33 kB / 0.6474 GB, free: 3.246 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002932/1.806, allocations: 1.477 MB / 0.6489 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002475/1.808, allocations: 1.173 MB / 0.65 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/1.808, allocations: 11.94 kB / 0.65 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/1.808, allocations: 3.984 kB / 0.6501 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004229/1.813, allocations: 2.423 MB / 0.6524 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/1.813, allocations: 3.984 kB / 0.6524 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/1.814, allocations: 231.7 kB / 0.6526 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00168/1.815, allocations: 0.5936 MB / 0.6532 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/1.815, allocations: 19.98 kB / 0.6532 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001397/1.817, allocations: 1.577 MB / 0.6548 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/1.817, allocations: 0 / 0.6548 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003709/1.821, allocations: 1.845 MB / 0.6566 GB, free: 9.699 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002222/1.821, allocations: 207.9 kB / 0.6568 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.288e-05/1.821, allocations: 19.94 kB / 0.6568 GB, free: 9.457 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005988/1.821, allocations: 83.88 kB / 0.6569 GB, free: 9.375 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/1.822, allocations: 60.91 kB / 0.6569 GB, free: 9.312 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.963e-05/1.822, allocations: 23.98 kB / 0.657 GB, free: 9.289 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002273/1.822, allocations: 255.2 kB / 0.6572 GB, free: 9.043 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.822, allocations: 3.938 kB / 0.6572 GB, free: 9.039 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002695/1.825, allocations: 1.187 MB / 0.6584 GB, free: 7.852 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Motor1.w,Motor1.Im,DynamicCentrifugalPump1.w,DynamicCentrifugalPump1.h,Tank.z,Tank.h,Shaft1.delta) * Number of discrete variables: 3 ($whenCondition1,Pulse1.T0,Pulse1.yL.signal) * 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 (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,16), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007865/1.832, allocations: 3.899 MB / 0.6622 GB, free: 3.922 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002943/1.835, allocations: 1.212 MB / 0.6634 GB, free: 2.676 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/1.835, allocations: 0 / 0.6634 GB, free: 2.676 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001576/1.837, allocations: 0.6648 MB / 0.664 GB, free: 2.004 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/1.838, allocations: 196.2 kB / 0.6642 GB, free: 1.816 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01253/1.851, allocations: 7.617 MB / 0.6716 GB, free: 9.969 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/1.851, allocations: 0.935 MB / 0.6725 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003025/1.851, allocations: 64.55 kB / 0.6726 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003204/1.852, allocations: 263.3 kB / 0.6729 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of SimCode: time 5.81e-07/1.852, allocations: 4 kB / 0.6729 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2181/2.07, allocations: 54.42 MB / 0.726 GB, free: 202.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/2.07, allocations: 248.9 kB / 0.7262 GB, free: 202.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.957/6.027, allocations: 0 / 0.7262 GB, free: 202.5 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCentrifugalPump.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump.pipe 2>&1)