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.8165/0.8165, allocations: 150.9 MB / 166.4 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003383, allocations: 15.97 kB / 204.6 MB, free: 9.652 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1491, allocations: 31.33 MB / 236 MB, free: 5.512 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.546/1.695, allocations: 294.7 MB / 0.5183 GB, free: 12.95 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1947/1.89, allocations: 187.4 MB / 0.7013 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002655/1.89, allocations: 7.938 kB / 0.7013 GB, free: 1.102 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.0001632/1.891, allocations: 36.44 kB / 0.7013 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004029/1.891, allocations: 119 kB / 0.7015 GB, free: 0.9492 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.3187/2.21, allocations: 11.3 MB / 0.7125 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004661/2.21, allocations: 378.8 kB / 0.7129 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002652/2.211, allocations: 203.6 kB / 0.7131 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/2.211, allocations: 155.4 kB / 0.7132 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/2.211, allocations: 161.1 kB / 0.7134 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/2.211, allocations: 35.19 kB / 0.7134 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03187/2.243, allocations: 19.65 MB / 0.7326 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001263/2.243, allocations: 76.45 kB / 0.7326 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003029/2.243, allocations: 179.5 kB / 0.7328 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02479/2.268, allocations: 9.75 MB / 0.7423 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/2.268, allocations: 3.5 kB / 0.7423 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.813e-06/2.268, allocations: 0 / 0.7423 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.628e-06/2.268, allocations: 0 / 0.7423 GB, free: 0.582 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.004661/2.273, allocations: 1.753 MB / 0.7441 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/2.273, allocations: 10.94 kB / 0.7441 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.922e-05/2.273, allocations: 70.12 kB / 0.7441 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.478e-05/2.273, allocations: 40.72 kB / 0.7442 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/2.273, allocations: 290.7 kB / 0.7444 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/2.273, allocations: 28.31 kB / 0.7445 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/2.273, allocations: 31.88 kB / 0.7445 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005102/2.274, allocations: 360.2 kB / 0.7448 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/2.274, allocations: 1 kB / 0.7448 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/2.274, allocations: 21.27 kB / 0.7449 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/2.274, allocations: 9.188 kB / 0.7449 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004094/2.274, allocations: 232.6 kB / 0.7451 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07604/2.351, allocations: 31.9 MB / 0.7762 GB, free: 6.02 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/2.351, allocations: 72.48 kB / 0.7763 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.163e-05/2.351, allocations: 27.92 kB / 0.7763 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2437/2.595, allocations: 118.3 MB / 0.8918 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/2.595, allocations: 34.31 kB / 0.8919 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 2.394e-06/2.595, allocations: 0 / 0.8919 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0005272/2.595, allocations: 119.1 kB / 0.892 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/2.595, allocations: 55.39 kB / 0.892 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004007/2.596, allocations: 300.7 kB / 0.8923 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/2.596, allocations: 31.38 kB / 0.8924 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/2.596, allocations: 231.2 kB / 0.8926 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/2.596, allocations: 22.97 kB / 0.8926 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.32e-05/2.596, allocations: 55.38 kB / 0.8927 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001154/2.596, allocations: 333.8 kB / 0.893 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/2.596, allocations: 41.98 kB / 0.893 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/2.597, allocations: 148.6 kB / 0.8932 GB, free: 3.441 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/2.597, allocations: 189.7 kB / 0.8933 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/2.597, allocations: 0 / 0.8933 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004662/2.597, allocations: 228.8 kB / 0.8936 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/2.597, allocations: 8 kB / 0.8936 GB, free: 3.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/2.597, allocations: 7.938 kB / 0.8936 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/2.597, allocations: 4 kB / 0.8936 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006519/2.598, allocations: 113.5 kB / 0.8937 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/2.598, allocations: 11.98 kB / 0.8937 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/2.598, allocations: 38.44 kB / 0.8937 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/2.598, allocations: 13.86 kB / 0.8937 GB, free: 2.898 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.0001533/2.598, allocations: 149 kB / 0.8939 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.76e-05/2.599, allocations: 23.72 kB / 0.8939 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003125/2.599, allocations: 115.5 kB / 0.894 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/2.599, allocations: 0 / 0.894 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/2.599, allocations: 0 / 0.894 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/2.599, allocations: 0 / 0.894 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3843/2.983, allocations: 114.5 MB / 1.006 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/2.983, allocations: 0 / 1.006 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.54e-05/2.983, allocations: 22.3 kB / 1.006 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/2.983, allocations: 4 kB / 1.006 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/2.983, allocations: 5.375 kB / 1.006 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/2.983, allocations: 1.125 kB / 1.006 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/2.983, allocations: 3.406 kB / 1.006 GB, free: 460.2 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/2.984, allocations: 153.1 kB / 1.006 GB, free: 460.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.042e-05/2.984, allocations: 105.4 kB / 1.006 GB, free: 460 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/2.984, allocations: 2.531 kB / 1.006 GB, free: 460 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.708e-05/2.984, allocations: 4.312 kB / 1.006 GB, free: 460 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.77e-05/2.984, allocations: 4.938 kB / 1.006 GB, free: 460 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.124e-06/2.984, allocations: 2.844 kB / 1.006 GB, free: 460 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001805/2.984, allocations: 224.2 kB / 1.006 GB, free: 459.9 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/2.984, allocations: 4.844 kB / 1.006 GB, free: 459.9 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003595/2.988, allocations: 1.432 MB / 1.008 GB, free: 459.9 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.006294/2.994, allocations: 2.802 MB / 1.01 GB, free: 459.1 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004107/2.994, allocations: 125.5 kB / 1.011 GB, free: 459.1 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/2.994, allocations: 0 / 1.011 GB, free: 459.1 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.928e-05/2.995, allocations: 27 kB / 1.011 GB, free: 459.1 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004355/2.995, allocations: 76.97 kB / 1.011 GB, free: 459.1 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003921/2.999, allocations: 3.052 MB / 1.014 GB, free: 457.4 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/2.999, allocations: 0.7568 MB / 1.014 GB, free: 456.7 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001743/2.999, allocations: 48.5 kB / 1.014 GB, free: 456.7 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/2.999, allocations: 97.62 kB / 1.015 GB, free: 456.7 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/2.999, allocations: 0 / 1.015 GB, free: 456.7 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07953/3.079, allocations: 50.61 MB / 1.064 GB, free: 419 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.81/12.89, allocations: 3.297 kB / 1.064 GB, free: 419 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 & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)