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.7562/0.7562, allocations: 150.8 MB / 166.1 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002873, allocations: 15.97 kB / 204.2 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1487, allocations: 31.34 MB / 235.6 MB, free: 5.418 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.446/1.595, allocations: 293.7 MB / 0.5168 GB, free: 13.51 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1735/1.769, allocations: 185.4 MB / 0.6979 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/1.769, allocations: 7.938 kB / 0.6979 GB, free: 3.719 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.0001136/1.769, allocations: 31.77 kB / 0.6979 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002409/1.769, allocations: 95.23 kB / 0.698 GB, free: 3.594 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.2945/2.064, allocations: 9.972 MB / 0.7078 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004289/2.064, allocations: 382.8 kB / 0.7081 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002203/2.064, allocations: 199.9 kB / 0.7083 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/2.064, allocations: 152.8 kB / 0.7085 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/2.065, allocations: 165.9 kB / 0.7086 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.553e-05/2.065, allocations: 38.81 kB / 0.7087 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02712/2.092, allocations: 19.82 MB / 0.728 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001008/2.092, allocations: 72.33 kB / 0.7281 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002529/2.092, allocations: 185.9 kB / 0.7283 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02106/2.113, allocations: 9.855 MB / 0.7379 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/2.113, allocations: 0 / 0.7379 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.693e-06/2.113, allocations: 0.7812 kB / 0.7379 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.295e-06/2.113, allocations: 0 / 0.7379 GB, free: 3.707 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.004843/2.118, allocations: 1.749 MB / 0.7396 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/2.118, allocations: 8.438 kB / 0.7396 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.239e-05/2.118, allocations: 72.56 kB / 0.7397 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.996e-05/2.118, allocations: 49.17 kB / 0.7397 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/2.119, allocations: 287 kB / 0.74 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/2.119, allocations: 27.41 kB / 0.74 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/2.119, allocations: 32.72 kB / 0.7401 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004912/2.119, allocations: 362 kB / 0.7404 GB, free: 18.11 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/2.119, allocations: 0 / 0.7404 GB, free: 18.11 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/2.119, allocations: 18.41 kB / 0.7404 GB, free: 18.1 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/2.119, allocations: 9.75 kB / 0.7404 GB, free: 18.1 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003861/2.12, allocations: 234 kB / 0.7407 GB, free: 18.07 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06218/2.182, allocations: 31.9 MB / 0.7718 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/2.182, allocations: 70.41 kB / 0.7719 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.625e-05/2.182, allocations: 31.8 kB / 0.7719 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.204/2.386, allocations: 118.3 MB / 0.8874 GB, free: 9.145 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.263e-05/2.386, allocations: 38.55 kB / 0.8874 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 1.603e-06/2.386, allocations: 0 / 0.8874 GB, free: 9.098 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0004052/2.387, allocations: 121.9 kB / 0.8876 GB, free: 8.992 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/2.387, allocations: 55.41 kB / 0.8876 GB, free: 8.926 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/2.387, allocations: 299.8 kB / 0.8879 GB, free: 8.684 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/2.387, allocations: 29.08 kB / 0.8879 GB, free: 8.652 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/2.387, allocations: 225.9 kB / 0.8881 GB, free: 8.465 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.821e-05/2.387, allocations: 26.08 kB / 0.8882 GB, free: 8.445 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.987e-05/2.387, allocations: 52.55 kB / 0.8882 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.705e-05/2.388, allocations: 333.8 kB / 0.8885 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/2.388, allocations: 45.97 kB / 0.8886 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/2.388, allocations: 142.6 kB / 0.8887 GB, free: 7.879 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002566/2.388, allocations: 200.8 kB / 0.8889 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/2.388, allocations: 0 / 0.8889 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003762/2.388, allocations: 219.8 kB / 0.8891 GB, free: 7.523 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/2.388, allocations: 16.08 kB / 0.8891 GB, free: 7.508 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/2.389, allocations: 7.938 kB / 0.8891 GB, free: 7.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/2.389, allocations: 4 kB / 0.8891 GB, free: 7.496 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006354/2.389, allocations: 111.9 kB / 0.8892 GB, free: 7.391 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/2.389, allocations: 7 kB / 0.8893 GB, free: 7.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/2.389, allocations: 46.89 kB / 0.8893 GB, free: 7.344 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.707e-05/2.389, allocations: 15.62 kB / 0.8893 GB, free: 7.332 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.0001148/2.39, allocations: 147.4 kB / 0.8895 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.422e-05/2.39, allocations: 23.72 kB / 0.8895 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002623/2.39, allocations: 116.5 kB / 0.8896 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/2.39, allocations: 0 / 0.8896 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/2.39, allocations: 0 / 0.8896 GB, free: 7.074 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/2.39, allocations: 3.984 kB / 0.8896 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3601/2.75, allocations: 114.5 MB / 1.001 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/2.75, allocations: 3.875 kB / 1.001 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.329e-05/2.75, allocations: 24.77 kB / 1.001 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/2.75, allocations: 0 / 1.001 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/2.75, allocations: 3.156 kB / 1.001 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/2.75, allocations: 3.312 kB / 1.001 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/2.75, allocations: 1.188 kB / 1.001 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000236/2.75, allocations: 149 kB / 1.002 GB, free: 460.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.802e-05/2.75, allocations: 111.7 kB / 1.002 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.682e-05/2.751, allocations: 5.062 kB / 1.002 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.611e-05/2.751, allocations: 6.656 kB / 1.002 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.992e-05/2.751, allocations: 7.406 kB / 1.002 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/2.751, allocations: 5.984 kB / 1.002 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001791/2.751, allocations: 219.5 kB / 1.002 GB, free: 460.1 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/2.751, allocations: 0 / 1.002 GB, free: 460.1 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003153/2.754, allocations: 1.436 MB / 1.003 GB, free: 460.1 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.005552/2.76, allocations: 2.87 MB / 1.006 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003467/2.76, allocations: 114.8 kB / 1.006 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/2.76, allocations: 0 / 1.006 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.629e-05/2.76, allocations: 30.41 kB / 1.006 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/2.76, allocations: 72.16 kB / 1.006 GB, free: 459.4 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003477/2.764, allocations: 3.151 MB / 1.009 GB, free: 457.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001606/2.764, allocations: 0.7541 MB / 1.01 GB, free: 456.9 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001684/2.764, allocations: 44.5 kB / 1.01 GB, free: 456.9 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/2.764, allocations: 103.4 kB / 1.01 GB, free: 456.9 MB / 0.8262 GB Notification: Performance of SimCode: time 4.91e-07/2.764, allocations: 0 / 1.01 GB, free: 456.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05974/2.824, allocations: 50.98 MB / 1.06 GB, free: 422.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/2.824, allocations: 272.2 kB / 1.06 GB, free: 422.5 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.99/6.814, allocations: 1.625 kB / 1.06 GB, free: 422.5 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)