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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8354/0.8354, allocations: 153.8 MB / 170.9 MB, free: 13.88 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004849/0.0004849, allocations: 21.16 kB / 247 MB, free: 14.88 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05393/0.05442, allocations: 33.34 MB / 280.3 MB, free: 15.16 MB / 238.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.677/1.731, allocations: 307.4 MB / 0.5739 GB, free: 10.55 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.4659/2.197, allocations: 190.9 MB / 0.7603 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002341/2.198, allocations: 10.64 kB / 0.7604 GB, free: 13.35 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourcePQ.mo:75:3-76: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 master/Fluid/BoundaryConditions/SinkP.mo:47:3-48: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 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 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.0001469/2.198, allocations: 45.5 kB / 0.7604 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002956/2.198, allocations: 119.5 kB / 0.7605 GB, free: 13.26 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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 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.02913/2.227, allocations: 11.53 MB / 0.7718 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004411/2.228, allocations: 388.5 kB / 0.7721 GB, free: 9.773 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/2.228, allocations: 168.2 kB / 0.7723 GB, free: 9.715 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/2.228, allocations: 170.8 kB / 0.7725 GB, free: 9.695 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/2.228, allocations: 169.3 kB / 0.7726 GB, free: 9.668 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/2.228, allocations: 36.53 kB / 0.7727 GB, free: 9.664 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03266/2.261, allocations: 19.96 MB / 0.7922 GB, free: 216 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001315/2.261, allocations: 84.34 kB / 0.7922 GB, free: 164 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002114/2.261, allocations: 193.1 kB / 0.7924 GB, free: 92 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02177/2.283, allocations: 9.792 MB / 0.802 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/2.283, allocations: 4 kB / 0.802 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.634e-06/2.283, allocations: 0 / 0.802 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.566e-06/2.283, allocations: 3.938 kB / 0.802 GB, free: 8.672 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.004481/2.288, allocations: 1.856 MB / 0.8038 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/2.288, allocations: 16.03 kB / 0.8038 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.34e-05/2.288, allocations: 9 kB / 0.8038 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.713e-05/2.288, allocations: 74.52 kB / 0.8039 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.49e-05/2.288, allocations: 43.77 kB / 0.8039 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/2.288, allocations: 307.4 kB / 0.8042 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.3e-05/2.288, allocations: 36.94 kB / 0.8043 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/2.288, allocations: 28 kB / 0.8043 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006012/2.289, allocations: 360.7 kB / 0.8046 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/2.289, allocations: 0 / 0.8046 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/2.289, allocations: 17.88 kB / 0.8047 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/2.289, allocations: 12 kB / 0.8047 GB, free: 5.816 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004813/2.289, allocations: 230 kB / 0.8049 GB, free: 5.594 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07916/2.369, allocations: 34.73 MB / 0.8388 GB, free: 15.66 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/2.369, allocations: 66.55 kB / 0.8389 GB, free: 15.58 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.268e-05/2.369, allocations: 24.92 kB / 0.8389 GB, free: 15.55 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2545/2.623, allocations: 126.7 MB / 0.9626 GB, free: 2.062 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/2.623, allocations: 34.56 kB / 0.9626 GB, free: 2.02 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.764e-06/2.623, allocations: 4 kB / 0.9626 GB, free: 2.016 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0004458/2.624, allocations: 118.1 kB / 0.9628 GB, free: 1.895 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/2.624, allocations: 55.41 kB / 0.9628 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004205/2.624, allocations: 361.6 kB / 0.9631 GB, free: 1.461 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/2.624, allocations: 25.7 kB / 0.9632 GB, free: 1.43 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/2.625, allocations: 234.2 kB / 0.9634 GB, free: 1.195 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/2.625, allocations: 26.88 kB / 0.9634 GB, free: 1.172 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-05/2.625, allocations: 61.61 kB / 0.9635 GB, free: 1.105 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001387/2.625, allocations: 338.8 kB / 0.9638 GB, free: 0.7656 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/2.625, allocations: 39.97 kB / 0.9638 GB, free: 0.7266 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/2.625, allocations: 145.7 kB / 0.964 GB, free: 0.5352 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003027/2.625, allocations: 197.4 kB / 0.9642 GB, free: 300 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/2.625, allocations: 4.875 kB / 0.9642 GB, free: 296 kB / 0.7794 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004342/2.626, allocations: 221.5 kB / 0.9644 GB, free: 68 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/2.626, allocations: 4 kB / 0.9644 GB, free: 64 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/2.626, allocations: 4 kB / 0.9644 GB, free: 60 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/2.626, allocations: 8 kB / 0.9644 GB, free: 52 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006794/2.627, allocations: 120 kB / 0.9645 GB, free: 15.93 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/2.627, allocations: 11.94 kB / 0.9645 GB, free: 15.92 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/2.627, allocations: 39.66 kB / 0.9646 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/2.627, allocations: 13.25 kB / 0.9646 GB, free: 15.87 MB / 0.795 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.0001606/2.627, allocations: 166.9 kB / 0.9647 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.321e-05/2.627, allocations: 27.81 kB / 0.9648 GB, free: 15.67 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002862/2.627, allocations: 117.9 kB / 0.9649 GB, free: 15.55 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/2.627, allocations: 0 / 0.9649 GB, free: 15.55 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/2.627, allocations: 0 / 0.9649 GB, free: 15.55 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/2.627, allocations: 1 kB / 0.9649 GB, free: 15.55 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3888/3.016, allocations: 122.9 MB / 1.085 GB, free: 381 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/3.016, allocations: 8.125 kB / 1.085 GB, free: 381 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.298e-05/3.016, allocations: 11.98 kB / 1.085 GB, free: 381 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/3.016, allocations: 0 / 1.085 GB, free: 381 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/3.016, allocations: 4 kB / 1.085 GB, free: 381 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/3.016, allocations: 5.547 kB / 1.085 GB, free: 381 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/3.016, allocations: 5.594 kB / 1.085 GB, free: 380.9 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/3.016, allocations: 158.6 kB / 1.085 GB, free: 380.8 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.661e-05/3.017, allocations: 123.2 kB / 1.085 GB, free: 380.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.41e-05/3.017, allocations: 6.25 kB / 1.085 GB, free: 380.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.881e-05/3.017, allocations: 7.984 kB / 1.085 GB, free: 380.7 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/3.017, allocations: 5.812 kB / 1.085 GB, free: 380.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/3.017, allocations: 11.48 kB / 1.085 GB, free: 380.7 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002112/3.017, allocations: 263 kB / 1.085 GB, free: 380.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 8e-08/3.017, allocations: 0 / 1.085 GB, free: 380.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002822/3.02, allocations: 1.455 MB / 1.087 GB, free: 379.3 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.004857/3.025, allocations: 2.812 MB / 1.09 GB, free: 377 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000334/3.025, allocations: 114.3 kB / 1.09 GB, free: 376.9 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/3.025, allocations: 0 / 1.09 GB, free: 376.9 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.488e-05/3.025, allocations: 27.23 kB / 1.09 GB, free: 376.9 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/3.025, allocations: 79.53 kB / 1.09 GB, free: 376.9 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/3.029, allocations: 3.149 MB / 1.093 GB, free: 373.8 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001532/3.029, allocations: 0.7753 MB / 1.094 GB, free: 373 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001204/3.029, allocations: 42.91 kB / 1.094 GB, free: 373 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/3.029, allocations: 106.6 kB / 1.094 GB, free: 373 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/3.029, allocations: 2.734 kB / 1.094 GB, free: 373 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06324/3.092, allocations: 50.81 MB / 1.143 GB, free: 322.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/13.42, allocations: 18.59 kB / 1.143 GB, free: 322.9 MB / 0.8262 GB " [Timeout remaining time 646] (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 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.360881436034106] Failed to read output from testmodel.py, exit status != 0: 13.697977745963726 13.707055198 11.421867496 Calling exit ...