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.8143/0.8143, allocations: 150.9 MB / 166.5 MB, free: 14.37 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004813/0.0004813, allocations: 16.97 kB / 236.6 MB, free: 2.012 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05673/0.05722, allocations: 31.34 MB / 267.9 MB, free: 7.551 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.64/1.697, allocations: 295.3 MB / 0.55 GB, free: 12.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5158/2.213, allocations: 187.4 MB / 0.7331 GB, free: 1.773 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002228/2.213, allocations: 7.75 kB / 0.7331 GB, free: 1.773 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.0001223/2.213, allocations: 43.92 kB / 0.7331 GB, free: 1.773 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002731/2.214, allocations: 114.6 kB / 0.7332 GB, free: 1.773 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.02898/2.243, allocations: 11.31 MB / 0.7443 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005001/2.243, allocations: 381.2 kB / 0.7446 GB, free: 1.566 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/2.243, allocations: 193.8 kB / 0.7448 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/2.244, allocations: 153.6 kB / 0.745 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000178/2.244, allocations: 168 kB / 0.7451 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/2.244, allocations: 32.16 kB / 0.7452 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03321/2.277, allocations: 19.91 MB / 0.7646 GB, free: 1.062 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001067/2.277, allocations: 73.66 kB / 0.7647 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000271/2.277, allocations: 178.7 kB / 0.7648 GB, free: 1.047 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0263/2.304, allocations: 9.763 MB / 0.7744 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/2.304, allocations: 0 / 0.7744 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.185e-06/2.304, allocations: 0.875 kB / 0.7744 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.498e-05/2.304, allocations: 0 / 0.7744 GB, free: 13.46 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.005721/2.31, allocations: 1.817 MB / 0.7762 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/2.31, allocations: 9.406 kB / 0.7762 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.987e-05/2.31, allocations: 73.06 kB / 0.7762 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/2.31, allocations: 43.02 kB / 0.7763 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004656/2.31, allocations: 305.4 kB / 0.7766 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/2.31, allocations: 30.72 kB / 0.7766 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.898e-05/2.31, allocations: 32.56 kB / 0.7766 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005931/2.311, allocations: 356.6 kB / 0.777 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/2.311, allocations: 0.9375 kB / 0.777 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/2.311, allocations: 20.52 kB / 0.777 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/2.311, allocations: 12.09 kB / 0.777 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004528/2.312, allocations: 226.7 kB / 0.7772 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07573/2.387, allocations: 32.14 MB / 0.8086 GB, free: 152 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/2.388, allocations: 65.16 kB / 0.8087 GB, free: 88 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.459e-05/2.388, allocations: 26.12 kB / 0.8087 GB, free: 68 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2474/2.635, allocations: 119 MB / 0.9249 GB, free: 14.02 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/2.635, allocations: 33.75 kB / 0.9249 GB, free: 13.98 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 2.024e-06/2.635, allocations: 1.094 kB / 0.9249 GB, free: 13.98 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0004665/2.636, allocations: 118.8 kB / 0.925 GB, free: 13.86 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/2.636, allocations: 55.39 kB / 0.9251 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004106/2.636, allocations: 307.2 kB / 0.9254 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/2.636, allocations: 25.7 kB / 0.9254 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/2.636, allocations: 236.9 kB / 0.9256 GB, free: 13.21 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/2.636, allocations: 16.84 kB / 0.9256 GB, free: 13.2 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/2.636, allocations: 57.64 kB / 0.9257 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001464/2.637, allocations: 331.9 kB / 0.926 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/2.637, allocations: 43.98 kB / 0.926 GB, free: 12.76 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/2.637, allocations: 143.6 kB / 0.9262 GB, free: 12.58 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/2.637, allocations: 200.3 kB / 0.9264 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/2.637, allocations: 0 / 0.9264 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004691/2.638, allocations: 227.9 kB / 0.9266 GB, free: 12.14 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/2.638, allocations: 8 kB / 0.9266 GB, free: 12.14 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/2.638, allocations: 8.031 kB / 0.9266 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/2.638, allocations: 7.938 kB / 0.9266 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006517/2.638, allocations: 118.1 kB / 0.9267 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/2.639, allocations: 13.19 kB / 0.9267 GB, free: 12 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/2.639, allocations: 38.41 kB / 0.9268 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/2.639, allocations: 15.98 kB / 0.9268 GB, free: 11.95 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.0001493/2.639, allocations: 146 kB / 0.9269 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.447e-05/2.639, allocations: 27.81 kB / 0.927 GB, free: 11.78 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002897/2.639, allocations: 114.1 kB / 0.9271 GB, free: 11.66 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/2.639, allocations: 3.938 kB / 0.9271 GB, free: 11.66 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/2.639, allocations: 0 / 0.9271 GB, free: 11.66 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/2.639, allocations: 0 / 0.9271 GB, free: 11.66 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4156/3.055, allocations: 115.2 MB / 1.04 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/3.055, allocations: 0 / 1.04 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.194e-05/3.055, allocations: 15.09 kB / 1.04 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/3.055, allocations: 3.75 kB / 1.04 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/3.055, allocations: 2.906 kB / 1.04 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/3.055, allocations: 8.391 kB / 1.04 GB, free: 441.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/3.055, allocations: 0 / 1.04 GB, free: 441.2 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002599/3.055, allocations: 148.6 kB / 1.04 GB, free: 441.2 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.48e-05/3.055, allocations: 109.2 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.677e-05/3.055, allocations: 9.688 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.393e-05/3.056, allocations: 5.812 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.023e-05/3.056, allocations: 7.312 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-06/3.056, allocations: 3.062 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001865/3.056, allocations: 219.4 kB / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/3.056, allocations: 0.5625 kB / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003241/3.059, allocations: 1.457 MB / 1.041 GB, free: 441 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.005262/3.064, allocations: 2.808 MB / 1.044 GB, free: 440.2 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00036/3.065, allocations: 116.7 kB / 1.044 GB, free: 440.2 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/3.065, allocations: 0 / 1.044 GB, free: 440.2 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.114e-05/3.065, allocations: 33.95 kB / 1.044 GB, free: 440.2 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/3.065, allocations: 67.78 kB / 1.044 GB, free: 440.2 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/3.069, allocations: 3.079 MB / 1.047 GB, free: 438.4 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001613/3.069, allocations: 0.7578 MB / 1.048 GB, free: 437.7 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001402/3.069, allocations: 45.84 kB / 1.048 GB, free: 437.7 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/3.069, allocations: 104.6 kB / 1.048 GB, free: 437.7 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/3.069, allocations: 0 / 1.048 GB, free: 437.7 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07162/3.141, allocations: 50.7 MB / 1.098 GB, free: 397.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/13.37, allocations: 14.11 kB / 1.098 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 & 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)