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.7757/0.7757, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003467, allocations: 16.14 kB / 236.6 MB, free: 2.02 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05501/0.05538, allocations: 31.34 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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.505/1.56, allocations: 294.7 MB / 0.5495 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5216/2.082, allocations: 187.4 MB / 0.7325 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002209/2.082, allocations: 7.281 kB / 0.7325 GB, free: 1.777 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.0001161/2.082, allocations: 41.28 kB / 0.7326 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.000263/2.083, allocations: 110.2 kB / 0.7327 GB, free: 1.777 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.02792/2.11, allocations: 11.32 MB / 0.7437 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004454/2.111, allocations: 383 kB / 0.7441 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002647/2.111, allocations: 193.6 kB / 0.7443 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/2.111, allocations: 165.5 kB / 0.7444 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/2.112, allocations: 162.2 kB / 0.7446 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/2.112, allocations: 33.41 kB / 0.7446 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.032/2.144, allocations: 19.91 MB / 0.764 GB, free: 1.059 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 9.619e-05/2.144, allocations: 67.84 kB / 0.7641 GB, free: 1.051 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000248/2.144, allocations: 183.8 kB / 0.7643 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02172/2.166, allocations: 9.742 MB / 0.7738 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/2.166, allocations: 0 / 0.7738 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.844e-06/2.166, allocations: 0 / 0.7738 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.447e-06/2.166, allocations: 3.844 kB / 0.7738 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.004418/2.17, allocations: 1.738 MB / 0.7755 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/2.17, allocations: 10.06 kB / 0.7755 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.545e-05/2.17, allocations: 73.88 kB / 0.7756 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.505e-05/2.17, allocations: 50.3 kB / 0.7756 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/2.171, allocations: 295.7 kB / 0.7759 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/2.171, allocations: 25.34 kB / 0.7759 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.636e-05/2.171, allocations: 34.78 kB / 0.776 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/2.171, allocations: 361.4 kB / 0.7763 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/2.171, allocations: 5.562 kB / 0.7763 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.42e-05/2.171, allocations: 13.19 kB / 0.7763 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/2.171, allocations: 14.94 kB / 0.7763 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004052/2.172, allocations: 225.4 kB / 0.7766 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06978/2.242, allocations: 32.13 MB / 0.8079 GB, free: 228 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/2.242, allocations: 71.64 kB / 0.808 GB, free: 164 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.634e-05/2.242, allocations: 20.48 kB / 0.808 GB, free: 144 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2309/2.473, allocations: 119 MB / 0.9242 GB, free: 14.11 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/2.473, allocations: 32.94 kB / 0.9242 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 2.034e-06/2.473, allocations: 0 / 0.9242 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0004689/2.473, allocations: 124.5 kB / 0.9244 GB, free: 13.95 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/2.474, allocations: 51.41 kB / 0.9244 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000366/2.474, allocations: 311.1 kB / 0.9247 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/2.474, allocations: 25.7 kB / 0.9247 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/2.474, allocations: 228.2 kB / 0.9249 GB, free: 13.31 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.981e-05/2.474, allocations: 19.73 kB / 0.925 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.142e-05/2.474, allocations: 60.61 kB / 0.925 GB, free: 13.23 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001026/2.474, allocations: 332 kB / 0.9253 GB, free: 12.9 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/2.474, allocations: 47.97 kB / 0.9254 GB, free: 12.85 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/2.475, allocations: 132.6 kB / 0.9255 GB, free: 12.68 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/2.475, allocations: 203.6 kB / 0.9257 GB, free: 12.45 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/2.475, allocations: 4 kB / 0.9257 GB, free: 12.44 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004394/2.475, allocations: 219.8 kB / 0.9259 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/2.475, allocations: 12.03 kB / 0.9259 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/2.475, allocations: 0 / 0.9259 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/2.475, allocations: 11.94 kB / 0.9259 GB, free: 12.22 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006504/2.476, allocations: 121.6 kB / 0.9261 GB, free: 12.11 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/2.476, allocations: 7.094 kB / 0.9261 GB, free: 12.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/2.476, allocations: 40.7 kB / 0.9261 GB, free: 12.06 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/2.476, allocations: 16 kB / 0.9261 GB, free: 12.05 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.0001379/2.476, allocations: 141 kB / 0.9262 GB, free: 11.9 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/2.477, allocations: 19.72 kB / 0.9263 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002872/2.477, allocations: 123.5 kB / 0.9264 GB, free: 11.76 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/2.477, allocations: 7.875 kB / 0.9264 GB, free: 11.75 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/2.477, allocations: 0 / 0.9264 GB, free: 11.75 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/2.477, allocations: 0 / 0.9264 GB, free: 11.75 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3947/2.872, allocations: 115.2 MB / 1.039 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/2.872, allocations: 2.875 kB / 1.039 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.185e-05/2.872, allocations: 12.62 kB / 1.039 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/2.872, allocations: 10.72 kB / 1.039 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/2.872, allocations: 3.562 kB / 1.039 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/2.872, allocations: 3 kB / 1.039 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/2.872, allocations: 4.656 kB / 1.039 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002514/2.872, allocations: 153.1 kB / 1.039 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/2.872, allocations: 109.8 kB / 1.039 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/2.872, allocations: 6.641 kB / 1.039 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.141e-05/2.872, allocations: 2.812 kB / 1.039 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.01e-05/2.872, allocations: 2.781 kB / 1.039 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/2.872, allocations: 7.453 kB / 1.039 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001765/2.872, allocations: 221.4 kB / 1.039 GB, free: 440.7 MB / 0.8419 GB Notification: Performance of sort global known variables: time 7.11e-07/2.872, allocations: 2.781 kB / 1.039 GB, free: 440.7 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003118/2.876, allocations: 1.442 MB / 1.041 GB, free: 440.7 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.00551/2.881, allocations: 2.779 MB / 1.044 GB, free: 439.9 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003652/2.881, allocations: 125.1 kB / 1.044 GB, free: 439.9 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/2.881, allocations: 1.219 kB / 1.044 GB, free: 439.9 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.71e-05/2.882, allocations: 23.66 kB / 1.044 GB, free: 439.9 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003957/2.882, allocations: 77.59 kB / 1.044 GB, free: 439.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003488/2.885, allocations: 3.04 MB / 1.047 GB, free: 438.2 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/2.886, allocations: 0.7616 MB / 1.047 GB, free: 437.5 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001431/2.886, allocations: 51.83 kB / 1.047 GB, free: 437.4 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/2.886, allocations: 95.58 kB / 1.048 GB, free: 437.4 MB / 0.8419 GB Notification: Performance of SimCode: time 5.81e-07/2.886, allocations: 0 / 1.048 GB, free: 437.4 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06528/2.951, allocations: 50.78 MB / 1.097 GB, free: 397.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/13.04, allocations: 9.141 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)