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.7734/0.7734, allocations: 150.9 MB / 166.4 MB, free: 14.23 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003307, allocations: 19.97 kB / 204.6 MB, free: 9.52 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.137, allocations: 31.33 MB / 236 MB, free: 5.406 MB / 190.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.543/1.68, allocations: 294.8 MB / 0.5183 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1847/1.865, allocations: 187.4 MB / 0.7013 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002732/1.865, allocations: 7.938 kB / 0.7013 GB, free: 1.438 MB / 0.5762 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.0001522/1.865, allocations: 40.3 kB / 0.7014 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003396/1.866, allocations: 119 kB / 0.7015 GB, free: 1.281 MB / 0.5762 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.2802/2.146, allocations: 11.31 MB / 0.7125 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003925/2.146, allocations: 379.6 kB / 0.7129 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000245/2.147, allocations: 202.9 kB / 0.7131 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/2.147, allocations: 157 kB / 0.7132 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/2.147, allocations: 162.1 kB / 0.7134 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/2.147, allocations: 35.92 kB / 0.7134 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02886/2.176, allocations: 19.64 MB / 0.7326 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.804e-05/2.176, allocations: 74.03 kB / 0.7327 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002182/2.176, allocations: 181.8 kB / 0.7329 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01864/2.195, allocations: 9.756 MB / 0.7424 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/2.195, allocations: 0 / 0.7424 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.904e-06/2.195, allocations: 0.9375 kB / 0.7424 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.336e-06/2.195, allocations: 0 / 0.7424 GB, free: 0.6055 MB / 0.5762 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.004249/2.199, allocations: 1.747 MB / 0.7441 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/2.199, allocations: 13.17 kB / 0.7441 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.302e-05/2.199, allocations: 72.88 kB / 0.7442 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.396e-05/2.199, allocations: 39.78 kB / 0.7442 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/2.2, allocations: 288.1 kB / 0.7445 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/2.2, allocations: 27.94 kB / 0.7445 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.332e-05/2.2, allocations: 33.22 kB / 0.7445 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/2.2, allocations: 359.2 kB / 0.7449 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/2.2, allocations: 4.594 kB / 0.7449 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/2.2, allocations: 17.44 kB / 0.7449 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/2.2, allocations: 7.375 kB / 0.7449 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004305/2.201, allocations: 226.9 kB / 0.7451 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07624/2.277, allocations: 31.91 MB / 0.7763 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/2.277, allocations: 76.45 kB / 0.7764 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.643e-05/2.277, allocations: 20.7 kB / 0.7764 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2452/2.523, allocations: 118.3 MB / 0.8919 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/2.523, allocations: 38.25 kB / 0.8919 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.794e-06/2.523, allocations: 0 / 0.8919 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0004533/2.523, allocations: 114.3 kB / 0.892 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/2.523, allocations: 51.41 kB / 0.8921 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/2.524, allocations: 302.7 kB / 0.8924 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/2.524, allocations: 25.7 kB / 0.8924 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/2.524, allocations: 236.9 kB / 0.8926 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/2.524, allocations: 22.78 kB / 0.8926 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.084e-05/2.524, allocations: 51.56 kB / 0.8927 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001059/2.524, allocations: 328.5 kB / 0.893 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/2.524, allocations: 48.84 kB / 0.893 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/2.524, allocations: 148.9 kB / 0.8932 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002759/2.525, allocations: 189.7 kB / 0.8934 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/2.525, allocations: 4 kB / 0.8934 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004587/2.525, allocations: 229.1 kB / 0.8936 GB, free: 3.168 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/2.525, allocations: 11.08 kB / 0.8936 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/2.525, allocations: 7.938 kB / 0.8936 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/2.525, allocations: 4 kB / 0.8936 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007002/2.526, allocations: 115.4 kB / 0.8937 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/2.526, allocations: 11.19 kB / 0.8937 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/2.526, allocations: 38.83 kB / 0.8938 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/2.526, allocations: 11.75 kB / 0.8938 GB, free: 2.988 MB / 0.7325 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.0001369/2.526, allocations: 146 kB / 0.8939 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.438e-05/2.526, allocations: 23.72 kB / 0.8939 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002848/2.527, allocations: 115.8 kB / 0.8941 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/2.527, allocations: 0 / 0.8941 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/2.527, allocations: 8.266 kB / 0.8941 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/2.527, allocations: 0 / 0.8941 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3923/2.919, allocations: 114.5 MB / 1.006 GB, free: 459.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/2.919, allocations: 0 / 1.006 GB, free: 459.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.018e-05/2.919, allocations: 24.09 kB / 1.006 GB, free: 459.8 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.299e-06/2.919, allocations: 3.906 kB / 1.006 GB, free: 459.8 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/2.919, allocations: 0.8438 kB / 1.006 GB, free: 459.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/2.919, allocations: 6.344 kB / 1.006 GB, free: 459.8 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/2.919, allocations: 0 / 1.006 GB, free: 459.8 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002703/2.919, allocations: 148.5 kB / 1.006 GB, free: 459.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.476e-05/2.919, allocations: 106 kB / 1.006 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/2.919, allocations: 4.562 kB / 1.006 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/2.92, allocations: 5.484 kB / 1.006 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.964e-05/2.92, allocations: 13.28 kB / 1.006 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/2.92, allocations: 7.219 kB / 1.006 GB, free: 459.6 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001911/2.92, allocations: 217.3 kB / 1.006 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.1e-07/2.92, allocations: 0 / 1.006 GB, free: 459.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003068/2.923, allocations: 1.439 MB / 1.008 GB, free: 459.5 MB / 0.8262 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.005608/2.929, allocations: 2.789 MB / 1.011 GB, free: 458.7 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003625/2.929, allocations: 117.1 kB / 1.011 GB, free: 458.7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/2.929, allocations: 5.344 kB / 1.011 GB, free: 458.7 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/2.929, allocations: 31.72 kB / 1.011 GB, free: 458.7 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/2.929, allocations: 65.61 kB / 1.011 GB, free: 458.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003403/2.933, allocations: 3.063 MB / 1.014 GB, free: 456.9 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/2.933, allocations: 0.7538 MB / 1.014 GB, free: 456.2 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001666/2.933, allocations: 49.38 kB / 1.014 GB, free: 456.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.805e-05/2.933, allocations: 96.61 kB / 1.015 GB, free: 456.2 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/2.933, allocations: 0 / 1.015 GB, free: 456.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06481/2.998, allocations: 50.61 MB / 1.064 GB, free: 418.8 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.824/12.82, allocations: 3.688 kB / 1.064 GB, free: 418.8 MB / 0.8262 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)