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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8766/0.8766, allocations: 152.6 MB / 168.9 MB, free: 15.01 MB / 142.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005344/0.0005344, allocations: 17.39 kB / 244.5 MB, free: 15.96 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06254/0.06307, allocations: 33.06 MB / 277.5 MB, free: 1.152 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.729/1.792, allocations: 301.2 MB / 0.5651 GB, free: 2.566 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5214/2.313, allocations: 188 MB / 0.7487 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002614/2.313, allocations: 12.53 kB / 0.7487 GB, free: 15.25 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.0001252/2.313, allocations: 37.83 kB / 0.7488 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002793/2.314, allocations: 112 kB / 0.7489 GB, free: 15.24 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.03176/2.346, allocations: 11.53 MB / 0.7601 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005732/2.346, allocations: 380.8 kB / 0.7605 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/2.346, allocations: 162.2 kB / 0.7607 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/2.347, allocations: 160.1 kB / 0.7608 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/2.347, allocations: 164.1 kB / 0.761 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/2.347, allocations: 34.34 kB / 0.761 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03751/2.384, allocations: 19.94 MB / 0.7805 GB, free: 8.066 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001761/2.384, allocations: 77.31 kB / 0.7805 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002628/2.385, allocations: 180 kB / 0.7807 GB, free: 7.949 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02929/2.414, allocations: 9.758 MB / 0.7902 GB, free: 2.254 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/2.414, allocations: 2.844 kB / 0.7903 GB, free: 2.254 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.673e-06/2.414, allocations: 0 / 0.7903 GB, free: 2.254 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.082e-05/2.414, allocations: 0 / 0.7903 GB, free: 2.254 MB / 0.5919 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.005733/2.42, allocations: 1.805 MB / 0.792 GB, free: 0.957 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/2.42, allocations: 14.62 kB / 0.792 GB, free: 0.9531 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.654e-05/2.42, allocations: 72.41 kB / 0.7921 GB, free: 0.8828 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.105e-05/2.42, allocations: 42.86 kB / 0.7921 GB, free: 0.8633 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004287/2.42, allocations: 307.8 kB / 0.7924 GB, free: 0.5625 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.043e-05/2.42, allocations: 27.62 kB / 0.7925 GB, free: 0.5508 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.189e-05/2.421, allocations: 36.69 kB / 0.7925 GB, free: 0.5352 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005835/2.421, allocations: 355 kB / 0.7928 GB, free: 300 kB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/2.421, allocations: 3.938 kB / 0.7928 GB, free: 296 kB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/2.421, allocations: 13.84 kB / 0.7928 GB, free: 288 kB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/2.421, allocations: 10.78 kB / 0.7929 GB, free: 284 kB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004489/2.422, allocations: 229.5 kB / 0.7931 GB, free: 172 kB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07668/2.498, allocations: 32.15 MB / 0.8245 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/2.499, allocations: 74.47 kB / 0.8245 GB, free: 13.33 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.173e-05/2.499, allocations: 16.86 kB / 0.8246 GB, free: 13.31 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2475/2.746, allocations: 119 MB / 0.9407 GB, free: 9.098 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/2.746, allocations: 34.55 kB / 0.9408 GB, free: 9.055 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 1.793e-06/2.746, allocations: 1.203 kB / 0.9408 GB, free: 9.055 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0004514/2.747, allocations: 117.5 kB / 0.9409 GB, free: 8.934 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/2.747, allocations: 51.41 kB / 0.9409 GB, free: 8.871 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004455/2.747, allocations: 307.2 kB / 0.9412 GB, free: 8.562 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/2.747, allocations: 25.7 kB / 0.9413 GB, free: 8.531 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/2.747, allocations: 231.8 kB / 0.9415 GB, free: 8.301 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/2.747, allocations: 27.39 kB / 0.9415 GB, free: 8.277 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.394e-05/2.747, allocations: 53.66 kB / 0.9416 GB, free: 8.219 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001523/2.748, allocations: 338.8 kB / 0.9419 GB, free: 7.879 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/2.748, allocations: 45.17 kB / 0.9419 GB, free: 7.836 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/2.748, allocations: 141.7 kB / 0.9421 GB, free: 7.648 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000305/2.748, allocations: 193.5 kB / 0.9422 GB, free: 7.41 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/2.748, allocations: 0.6875 kB / 0.9422 GB, free: 7.41 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004497/2.749, allocations: 225.5 kB / 0.9425 GB, free: 7.184 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/2.749, allocations: 12.83 kB / 0.9425 GB, free: 7.172 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/2.749, allocations: 4 kB / 0.9425 GB, free: 7.168 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/2.749, allocations: 4 kB / 0.9425 GB, free: 7.164 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006466/2.749, allocations: 119.8 kB / 0.9426 GB, free: 7.047 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/2.749, allocations: 4 kB / 0.9426 GB, free: 7.043 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/2.75, allocations: 37.8 kB / 0.9426 GB, free: 7.008 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/2.75, allocations: 17.03 kB / 0.9426 GB, free: 6.992 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.0001491/2.75, allocations: 150.3 kB / 0.9428 GB, free: 6.836 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.675e-05/2.75, allocations: 27.81 kB / 0.9428 GB, free: 6.809 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002984/2.75, allocations: 121.3 kB / 0.9429 GB, free: 6.68 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/2.75, allocations: 0 / 0.9429 GB, free: 6.68 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/2.75, allocations: 0 / 0.9429 GB, free: 6.68 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/2.75, allocations: 7.984 kB / 0.9429 GB, free: 6.672 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.416/3.166, allocations: 115.2 MB / 1.055 GB, free: 416.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/3.166, allocations: 4.125 kB / 1.055 GB, free: 416.5 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.44e-05/3.166, allocations: 19.8 kB / 1.055 GB, free: 416.5 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/3.166, allocations: 0 / 1.055 GB, free: 416.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/3.166, allocations: 2.812 kB / 1.055 GB, free: 416.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/3.166, allocations: 0 / 1.055 GB, free: 416.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/3.166, allocations: 9.922 kB / 1.055 GB, free: 416.5 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/3.167, allocations: 154.9 kB / 1.056 GB, free: 416.4 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.496e-05/3.167, allocations: 102.9 kB / 1.056 GB, free: 416.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.533e-05/3.167, allocations: 3 kB / 1.056 GB, free: 416.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.838e-05/3.167, allocations: 7.203 kB / 1.056 GB, free: 416.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.455e-05/3.167, allocations: 13.53 kB / 1.056 GB, free: 416.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/3.167, allocations: 4.406 kB / 1.056 GB, free: 416.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001866/3.167, allocations: 224.1 kB / 1.056 GB, free: 416.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/3.167, allocations: 0 / 1.056 GB, free: 416.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003627/3.171, allocations: 1.455 MB / 1.057 GB, free: 416.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.005806/3.176, allocations: 2.819 MB / 1.06 GB, free: 414.2 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003847/3.177, allocations: 104.7 kB / 1.06 GB, free: 414.1 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/3.177, allocations: 0 / 1.06 GB, free: 414.1 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.796e-05/3.177, allocations: 31.17 kB / 1.06 GB, free: 414.1 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004905/3.177, allocations: 72.84 kB / 1.06 GB, free: 414 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004068/3.181, allocations: 3.07 MB / 1.063 GB, free: 411.1 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/3.182, allocations: 0.7567 MB / 1.064 GB, free: 410.3 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001547/3.182, allocations: 49 kB / 1.064 GB, free: 410.3 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/3.182, allocations: 101 kB / 1.064 GB, free: 410.2 MB / 0.8262 GB Notification: Performance of SimCode: time 1.062e-06/3.182, allocations: 0 / 1.064 GB, free: 410.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07689/3.259, allocations: 50.76 MB / 1.114 GB, free: 360.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/13.78, allocations: 12.69 kB / 1.114 GB, free: 360.2 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.707260538823903] Failed to read output from testmodel.py, exit status != 0: 14.022658830974251 14.030956295 11.614808828 Calling exit ...