Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.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.TestStaticCentrifugalPumpWaterSolution,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPumpWaterSolution",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPumpWaterSolution",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.8643/0.8643, allocations: 150.9 MB / 166.5 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003269/0.0003269, allocations: 16.2 kB / 236.6 MB, free: 1.992 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05392/0.05427, allocations: 31.35 MB / 267.9 MB, free: 7.555 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution): time 1.688/1.743, allocations: 294.4 MB / 0.5492 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01784/1.76, allocations: 12.04 MB / 0.5609 GB, free: 1.004 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/1.761, allocations: 4 kB / 0.561 GB, free: 1 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/PressureLosses/SingularPressureLoss.mo:15:3-17:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/PressureLosses/SingularPressureLoss.mo:18:3-19:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/Machines/StaticCentrifugalPump.mo:46:3-48:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/Machines/StaticCentrifugalPump.mo:49:3-50:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/BoundaryConditions/SourcePQ.mo:9:3-10:83:writable] Warning: Connector Cs is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/BoundaryConditions/Sink.mo:10:3-12:16:writable] Warning: Connector Ce is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001658/1.761, allocations: 37.7 kB / 0.561 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000245/1.761, allocations: 63.36 kB / 0.561 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009947/1.771, allocations: 3.479 MB / 0.5644 GB, free: 13.43 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004962/1.772, allocations: 263.2 kB / 0.5647 GB, free: 13.17 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002927/1.772, allocations: 143.7 kB / 0.5648 GB, free: 13.02 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/1.772, allocations: 103.6 kB / 0.5649 GB, free: 12.92 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/1.772, allocations: 123.5 kB / 0.5651 GB, free: 12.8 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.364e-05/1.772, allocations: 24 kB / 0.5651 GB, free: 12.78 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01499/1.787, allocations: 7.662 MB / 0.5726 GB, free: 5.105 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/1.788, allocations: 51.78 kB / 0.5726 GB, free: 5.055 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001951/1.788, allocations: 127.3 kB / 0.5727 GB, free: 4.93 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00729/1.795, allocations: 3.403 MB / 0.576 GB, free: 1.52 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/1.795, allocations: 0 / 0.576 GB, free: 1.52 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.675e-06/1.795, allocations: 0 / 0.576 GB, free: 1.52 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.517e-05/1.795, allocations: 4 kB / 0.5761 GB, free: 1.516 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.002502/1.798, allocations: 0.8033 MB / 0.5768 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/1.798, allocations: 12.03 kB / 0.5768 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.844e-05/1.798, allocations: 66.7 kB / 0.5769 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.622e-05/1.798, allocations: 28.56 kB / 0.5769 GB, free: 0.543 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/1.798, allocations: 239.9 kB / 0.5772 GB, free: 276 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.548e-05/1.798, allocations: 20.94 kB / 0.5772 GB, free: 256 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.987e-05/1.798, allocations: 24.38 kB / 0.5772 GB, free: 232 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005696/1.799, allocations: 287.9 kB / 0.5775 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/1.799, allocations: 3.938 kB / 0.5775 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/1.799, allocations: 19.94 kB / 0.5775 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/1.799, allocations: 4 kB / 0.5775 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004358/1.799, allocations: 185.6 kB / 0.5777 GB, free: 15.71 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.006241/1.806, allocations: 3.03 MB / 0.5806 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/1.806, allocations: 182.8 kB / 0.5808 GB, free: 12.27 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/1.806, allocations: 72.81 kB / 0.5809 GB, free: 12.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004396/1.811, allocations: 1.714 MB / 0.5826 GB, free: 10.37 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003513/1.811, allocations: 145 kB / 0.5827 GB, free: 10.21 MB / 478.1 MB Notification: Performance of pre-optimization done (n=17): time 2.986e-06/1.811, allocations: 7.938 kB / 0.5827 GB, free: 10.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007218/1.812, allocations: 264.5 kB / 0.583 GB, free: 9.93 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.455e-05/1.812, allocations: 106.8 kB / 0.5831 GB, free: 9.801 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/1.812, allocations: 270.4 kB / 0.5833 GB, free: 9.527 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/1.812, allocations: 33.7 kB / 0.5834 GB, free: 9.488 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/1.812, allocations: 160.1 kB / 0.5835 GB, free: 9.328 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/1.812, allocations: 59.28 kB / 0.5836 GB, free: 9.27 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.91e-05/1.813, allocations: 53.61 kB / 0.5836 GB, free: 9.211 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/1.813, allocations: 334.8 kB / 0.5839 GB, free: 8.875 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000168/1.813, allocations: 64.19 kB / 0.584 GB, free: 8.809 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/1.813, allocations: 119.3 kB / 0.5841 GB, free: 8.668 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/1.816, allocations: 0.6167 MB / 0.5847 GB, free: 8.004 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/1.816, allocations: 4 kB / 0.5847 GB, free: 8 MB / 478.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005506/1.816, allocations: 278.8 kB / 0.585 GB, free: 7.715 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.501e-05/1.816, allocations: 37.69 kB / 0.585 GB, free: 7.672 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/1.816, allocations: 0 / 0.585 GB, free: 7.672 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/1.816, allocations: 4 kB / 0.585 GB, free: 7.668 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/1.818, allocations: 219.9 kB / 0.5852 GB, free: 7.453 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003642/1.818, allocations: 0.5899 MB / 0.5858 GB, free: 6.84 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/1.818, allocations: 47.52 kB / 0.5859 GB, free: 6.793 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/1.818, allocations: 12 kB / 0.5859 GB, free: 6.781 MB / 478.1 MB Warning: Assuming fixed start value for the following 2 variables: pulse.T0: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: 8 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.pulse.T0,$PRE.Pulse1.T0,pulse.T0,Pulse1.yL.signal,Pulse1.T0,$whenCondition2,sinkSolution.Ce.a,sourceSolution.Cs.b,staticCentrifugalPumpWaterLiBr.C2.b,staticCentrifugalPumpWaterLiBr.C1.a,singularPressureLossWaterLiBr.C2.b,singularPressureLossWaterLiBr.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002348/1.818, allocations: 173.7 kB / 0.586 GB, free: 6.598 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.452e-05/1.819, allocations: 23.72 kB / 0.5861 GB, free: 6.574 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005271/1.819, allocations: 243.3 kB / 0.5863 GB, free: 6.324 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/1.819, allocations: 7.938 kB / 0.5863 GB, free: 6.316 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/1.819, allocations: 3.984 kB / 0.5863 GB, free: 6.312 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/1.819, allocations: 3.984 kB / 0.5863 GB, free: 6.309 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003171/1.819, allocations: 289.4 kB / 0.5866 GB, free: 5.977 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/1.819, allocations: 0 / 0.5866 GB, free: 5.977 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/1.821, allocations: 195.8 kB / 0.5868 GB, free: 5.785 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/1.821, allocations: 0 / 0.5868 GB, free: 5.785 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/1.821, allocations: 8 kB / 0.5868 GB, free: 5.777 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003121/1.821, allocations: 0.5898 MB / 0.5873 GB, free: 5.164 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.821, allocations: 0 / 0.5873 GB, free: 5.164 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004732/1.822, allocations: 258.3 kB / 0.5876 GB, free: 4.887 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/1.822, allocations: 112.8 kB / 0.5877 GB, free: 4.758 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.157e-05/1.822, allocations: 12.08 kB / 0.5877 GB, free: 4.746 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/1.822, allocations: 15.98 kB / 0.5877 GB, free: 4.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/1.822, allocations: 11.98 kB / 0.5877 GB, free: 4.719 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/1.822, allocations: 19.81 kB / 0.5878 GB, free: 4.699 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001933/1.822, allocations: 182 kB / 0.5879 GB, free: 4.523 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/1.822, allocations: 0 / 0.5879 GB, free: 4.523 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001159/1.823, allocations: 395.8 kB / 0.5883 GB, free: 4.137 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,Pulse1.T0,Pulse1.yL.signal,pulse.T0) * Number of discrete states: 3 (Pulse1.yL.signal,Pulse1.T0,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002712/1.826, allocations: 1.203 MB / 0.5895 GB, free: 2.906 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009819/1.836, allocations: 0.8856 MB / 0.5903 GB, free: 2.008 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/1.836, allocations: 0 / 0.5903 GB, free: 2.008 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008486/1.845, allocations: 0.6625 MB / 0.591 GB, free: 1.332 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/1.845, allocations: 36.98 kB / 0.591 GB, free: 1.305 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004751/1.85, allocations: 2.617 MB / 0.5936 GB, free: 14.55 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/1.85, allocations: 0.7402 MB / 0.5943 GB, free: 13.79 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001279/1.85, allocations: 29.92 kB / 0.5943 GB, free: 13.76 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/1.85, allocations: 71.42 kB / 0.5944 GB, free: 13.69 MB / 494.1 MB Notification: Performance of SimCode: time 6.51e-07/1.85, allocations: 4 kB / 0.5944 GB, free: 13.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04467/1.895, allocations: 16.21 MB / 0.6102 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/13.29, allocations: 12.48 kB / 0.6102 GB, free: 13.67 MB / 0.4981 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPumpWaterSolution_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPumpWaterSolution.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe 2>&1)