Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.9101/0.9101, allocations: 153.8 MB / 172.7 MB, free: 4.973 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.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005119/0.0005119, allocations: 15.97 kB / 249.9 MB, free: 4.469 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.1645, allocations: 33.36 MB / 283.2 MB, free: 1.84 MB / 222.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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.816/1.981, allocations: 307.3 MB / 0.5767 GB, free: 15.99 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03352/2.014, allocations: 34.66 MB / 0.6105 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002864/2.014, allocations: 2.312 kB / 0.6105 GB, free: 14.55 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:26:3-28:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:29:3-30:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004821/2.015, allocations: 118.8 kB / 0.6106 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003023/2.015, allocations: 92.02 kB / 0.6107 GB, free: 14.43 MB / 494.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.03077/2.046, allocations: 9.813 MB / 0.6203 GB, free: 9.082 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005885/2.046, allocations: 280.6 kB / 0.6206 GB, free: 8.809 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/2.047, allocations: 80.5 kB / 0.6206 GB, free: 8.727 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002713/2.047, allocations: 127.5 kB / 0.6208 GB, free: 8.602 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/2.047, allocations: 100.2 kB / 0.6209 GB, free: 8.504 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/2.047, allocations: 16 kB / 0.6209 GB, free: 8.488 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03664/2.084, allocations: 17.92 MB / 0.6384 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.645e-05/2.084, allocations: 35.86 kB / 0.6384 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001872/2.084, allocations: 115.4 kB / 0.6385 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02194/2.106, allocations: 8.404 MB / 0.6467 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/2.106, allocations: 0 / 0.6467 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.324e-06/2.106, allocations: 0 / 0.6467 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.167e-06/2.106, allocations: 0 / 0.6467 GB, free: 13.99 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00425/2.11, allocations: 1.376 MB / 0.6481 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/2.11, allocations: 12.78 kB / 0.6481 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.815e-05/2.11, allocations: 58.48 kB / 0.6481 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.183e-05/2.11, allocations: 27.81 kB / 0.6482 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002179/2.111, allocations: 169.5 kB / 0.6483 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/2.111, allocations: 12.38 kB / 0.6483 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/2.111, allocations: 21.41 kB / 0.6484 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004292/2.111, allocations: 260.6 kB / 0.6486 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/2.111, allocations: 3.938 kB / 0.6486 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/2.111, allocations: 8.938 kB / 0.6486 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/2.111, allocations: 15.98 kB / 0.6486 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002795/2.111, allocations: 144.4 kB / 0.6488 GB, free: 11.8 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01841/2.13, allocations: 6.079 MB / 0.6547 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/2.13, allocations: 70.55 kB / 0.6548 GB, free: 5.531 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/2.13, allocations: 44.89 kB / 0.6548 GB, free: 5.484 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1436/2.274, allocations: 43.43 MB / 0.6972 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/2.274, allocations: 31.94 kB / 0.6973 GB, free: 9.973 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.063e-06/2.274, allocations: 0 / 0.6973 GB, free: 9.973 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0005783/2.274, allocations: 203.3 kB / 0.6975 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/2.274, allocations: 56.91 kB / 0.6975 GB, free: 9.703 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002565/2.275, allocations: 224.1 kB / 0.6977 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/2.275, allocations: 25.7 kB / 0.6978 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/2.275, allocations: 156.3 kB / 0.6979 GB, free: 9.289 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.243e-05/2.275, allocations: 75.36 kB / 0.698 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.784e-05/2.275, allocations: 45.64 kB / 0.698 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001611/2.275, allocations: 330.8 kB / 0.6983 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/2.275, allocations: 47.98 kB / 0.6984 GB, free: 8.785 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/2.275, allocations: 92.27 kB / 0.6985 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/2.276, allocations: 152.2 kB / 0.6986 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/2.276, allocations: 0 / 0.6986 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003676/2.276, allocations: 206.1 kB / 0.6988 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/2.276, allocations: 8 kB / 0.6988 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/2.276, allocations: 0 / 0.6988 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/2.276, allocations: 3.984 kB / 0.6988 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006916/2.277, allocations: 95.98 kB / 0.6989 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/2.277, allocations: 5.297 kB / 0.6989 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/2.277, allocations: 36.67 kB / 0.699 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/2.277, allocations: 4 kB / 0.699 GB, free: 8.16 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.000124/2.277, allocations: 136.1 kB / 0.6991 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.19e-05/2.277, allocations: 23.8 kB / 0.6991 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004718/2.278, allocations: 324 kB / 0.6994 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000249/2.278, allocations: 164.1 kB / 0.6996 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/2.278, allocations: 0 / 0.6996 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/2.278, allocations: 0 / 0.6996 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008922/2.279, allocations: 0.5785 MB / 0.7001 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/2.279, allocations: 3.984 kB / 0.7001 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005176/2.279, allocations: 91.92 kB / 0.7002 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/2.279, allocations: 0 / 0.7002 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/2.279, allocations: 8 kB / 0.7002 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/2.279, allocations: 5.719 kB / 0.7002 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/2.279, allocations: 3.938 kB / 0.7002 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004271/2.28, allocations: 290.5 kB / 0.7005 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.608e-05/2.28, allocations: 39.78 kB / 0.7006 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/2.28, allocations: 7.938 kB / 0.7006 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/2.28, allocations: 7.984 kB / 0.7006 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/2.28, allocations: 13.3 kB / 0.7006 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/2.28, allocations: 4 kB / 0.7006 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002083/2.28, allocations: 209.2 kB / 0.7008 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.28, allocations: 0 / 0.7008 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003134/2.283, allocations: 1.189 MB / 0.702 GB, free: 4.969 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.006169/2.289, allocations: 2.462 MB / 0.7044 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005277/2.29, allocations: 174.6 kB / 0.7045 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/2.29, allocations: 0 / 0.7045 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001453/2.29, allocations: 64.67 kB / 0.7046 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006665/2.291, allocations: 101.2 kB / 0.7047 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004768/2.296, allocations: 2.845 MB / 0.7075 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/2.296, allocations: 0.7556 MB / 0.7082 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000135/2.296, allocations: 29.33 kB / 0.7082 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/2.296, allocations: 83.41 kB / 0.7083 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of SimCode: time 7.91e-07/2.296, allocations: 2.625 kB / 0.7083 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09211/2.388, allocations: 46.53 MB / 0.7537 GB, free: 424 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/15.7, allocations: 16.17 kB / 0.7538 GB, free: 412 kB / 0.6075 GB " [Timeout remaining time 644] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.831848093075678] Failed to read output from testmodel.py, exit status != 0: 16.248570359079167 16.259572622 14.151054465 Calling exit ...