Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",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.7677/0.7677, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003152, allocations: 17.09 kB / 236.6 MB, free: 1.996 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05112/0.05145, allocations: 31.34 MB / 267.9 MB, free: 7.527 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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.502/1.553, allocations: 294.8 MB / 0.5495 GB, free: 13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4457/1.999, allocations: 187.4 MB / 0.7325 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00021/1.999, allocations: 7.812 kB / 0.7325 GB, free: 1.781 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/InvSingularPressureLoss.mo:30:3-31:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/InvSingularPressureLoss.mo:32:3-33:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001215/2, allocations: 38.34 kB / 0.7326 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002519/2, allocations: 114 kB / 0.7327 GB, free: 1.781 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02558/2.025, allocations: 11.53 MB / 0.744 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004436/2.026, allocations: 385.8 kB / 0.7443 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002304/2.026, allocations: 195.2 kB / 0.7445 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/2.026, allocations: 163.4 kB / 0.7447 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/2.026, allocations: 164.1 kB / 0.7448 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.357e-05/2.026, allocations: 32.12 kB / 0.7449 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0302/2.057, allocations: 19.9 MB / 0.7643 GB, free: 1.066 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 9.798e-05/2.057, allocations: 72.3 kB / 0.7644 GB, free: 1.059 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002629/2.057, allocations: 180.4 kB / 0.7645 GB, free: 1.047 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02135/2.078, allocations: 9.738 MB / 0.774 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/2.078, allocations: 0 / 0.774 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.452e-06/2.078, allocations: 0.9062 kB / 0.774 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.584e-06/2.079, allocations: 0 / 0.774 GB, free: 13.48 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004002/2.083, allocations: 1.741 MB / 0.7757 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/2.083, allocations: 10.22 kB / 0.7758 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.212e-05/2.083, allocations: 74.12 kB / 0.7758 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.528e-05/2.083, allocations: 51.23 kB / 0.7759 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/2.083, allocations: 294.3 kB / 0.7762 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/2.083, allocations: 30.09 kB / 0.7762 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/2.083, allocations: 31.12 kB / 0.7762 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004947/2.084, allocations: 360.4 kB / 0.7766 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/2.084, allocations: 0 / 0.7766 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/2.084, allocations: 16.97 kB / 0.7766 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/2.084, allocations: 11.72 kB / 0.7766 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004067/2.084, allocations: 232 kB / 0.7768 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06356/2.148, allocations: 32.14 MB / 0.8082 GB, free: 160 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/2.148, allocations: 64.92 kB / 0.8082 GB, free: 96 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.841e-05/2.148, allocations: 31.02 kB / 0.8083 GB, free: 72 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2034/2.351, allocations: 118.9 MB / 0.9244 GB, free: 13.93 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/2.352, allocations: 38.56 kB / 0.9245 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 3.456e-06/2.352, allocations: 1.922 kB / 0.9245 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0004614/2.352, allocations: 115.1 kB / 0.9246 GB, free: 13.77 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/2.352, allocations: 59.39 kB / 0.9246 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/2.352, allocations: 307.1 kB / 0.9249 GB, free: 13.38 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/2.352, allocations: 25.7 kB / 0.925 GB, free: 13.35 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/2.353, allocations: 228.5 kB / 0.9252 GB, free: 13.12 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.994e-05/2.353, allocations: 18.72 kB / 0.9252 GB, free: 13.11 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.04e-05/2.353, allocations: 57.59 kB / 0.9252 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001061/2.353, allocations: 334.8 kB / 0.9256 GB, free: 12.71 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/2.353, allocations: 39.98 kB / 0.9256 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/2.353, allocations: 148.2 kB / 0.9257 GB, free: 12.48 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/2.353, allocations: 198 kB / 0.9259 GB, free: 12.26 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/2.353, allocations: 0 / 0.9259 GB, free: 12.26 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004374/2.354, allocations: 227.4 kB / 0.9262 GB, free: 12.05 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/2.354, allocations: 9.719 kB / 0.9262 GB, free: 12.05 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/2.354, allocations: 5.094 kB / 0.9262 GB, free: 12.04 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/2.354, allocations: 8.406 kB / 0.9262 GB, free: 12.04 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000626/2.355, allocations: 115 kB / 0.9263 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/2.355, allocations: 11.08 kB / 0.9263 GB, free: 11.92 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/2.355, allocations: 35.69 kB / 0.9263 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/2.355, allocations: 16.77 kB / 0.9263 GB, free: 11.87 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001236/2.355, allocations: 149 kB / 0.9265 GB, free: 11.71 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.885e-05/2.355, allocations: 23.72 kB / 0.9265 GB, free: 11.69 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002644/2.355, allocations: 110.9 kB / 0.9266 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/2.355, allocations: 3.938 kB / 0.9266 GB, free: 11.57 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/2.355, allocations: 5.094 kB / 0.9266 GB, free: 11.57 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/2.355, allocations: 3.844 kB / 0.9266 GB, free: 11.57 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3638/2.719, allocations: 115.2 MB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/2.719, allocations: 6.625 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.213e-05/2.719, allocations: 11.69 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/2.719, allocations: 8.016 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/2.719, allocations: 3.688 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/2.719, allocations: 3.875 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/2.719, allocations: 0.5625 kB / 1.039 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/2.72, allocations: 150.6 kB / 1.039 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.149e-05/2.72, allocations: 110.9 kB / 1.039 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/2.72, allocations: 2.719 kB / 1.039 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.238e-05/2.72, allocations: 2.719 kB / 1.039 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.947e-05/2.72, allocations: 6.656 kB / 1.039 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-06/2.72, allocations: 6.781 kB / 1.039 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001799/2.72, allocations: 221.6 kB / 1.04 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/2.72, allocations: 0 / 1.04 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003082/2.723, allocations: 1.438 MB / 1.041 GB, free: 440.8 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005259/2.728, allocations: 2.792 MB / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003617/2.729, allocations: 113.6 kB / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/2.729, allocations: 0 / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.579e-05/2.729, allocations: 31.34 kB / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/2.729, allocations: 73.39 kB / 1.044 GB, free: 440.1 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003379/2.733, allocations: 3.053 MB / 1.047 GB, free: 438.3 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001497/2.733, allocations: 0.7594 MB / 1.048 GB, free: 437.6 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001413/2.733, allocations: 44.89 kB / 1.048 GB, free: 437.6 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/2.733, allocations: 103.4 kB / 1.048 GB, free: 437.6 MB / 0.8419 GB Notification: Performance of SimCode: time 4.01e-07/2.733, allocations: 0 / 1.048 GB, free: 437.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06464/2.798, allocations: 50.7 MB / 1.097 GB, free: 397.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/12.81, allocations: 7.688 kB / 1.097 GB, free: 397.6 MB / 0.8419 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)