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 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8609/0.8609, allocations: 150.9 MB / 166.4 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003562, allocations: 23.97 kB / 204.6 MB, free: 9.73 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.143, allocations: 31.34 MB / 236 MB, free: 5.551 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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.558/1.701, allocations: 294.6 MB / 0.5181 GB, free: 13.49 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03675/1.738, allocations: 34.37 MB / 0.5517 GB, free: 11.25 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/1.738, allocations: 4 kB / 0.5517 GB, free: 11.24 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.0003191/1.739, allocations: 100.6 kB / 0.5518 GB, free: 11.14 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001434/1.739, allocations: 83.31 kB / 0.5518 GB, free: 11.06 MB / 446.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02261/1.761, allocations: 9.562 MB / 0.5612 GB, free: 1.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003735/1.762, allocations: 282.7 kB / 0.5614 GB, free: 1.223 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/1.762, allocations: 96.83 kB / 0.5615 GB, free: 1.129 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/1.762, allocations: 115.5 kB / 0.5616 GB, free: 1.016 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/1.762, allocations: 99.5 kB / 0.5617 GB, free: 0.918 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.374e-05/1.762, allocations: 16 kB / 0.5618 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02692/1.789, allocations: 17.67 MB / 0.579 GB, free: 15.21 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.673e-05/1.789, allocations: 31.86 kB / 0.579 GB, free: 15.18 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/1.79, allocations: 111.4 kB / 0.5792 GB, free: 15.07 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01683/1.806, allocations: 8.387 MB / 0.5873 GB, free: 6.66 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/1.806, allocations: 4 kB / 0.5873 GB, free: 6.656 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.422e-06/1.806, allocations: 0 / 0.5873 GB, free: 6.656 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/1.806, allocations: 0 / 0.5873 GB, free: 6.656 MB / 478.1 MB 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.003136/1.81, allocations: 1.396 MB / 0.5887 GB, free: 5.207 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/1.81, allocations: 12.03 kB / 0.5887 GB, free: 5.195 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.073e-05/1.81, allocations: 58.55 kB / 0.5888 GB, free: 5.129 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.705e-05/1.81, allocations: 27.66 kB / 0.5888 GB, free: 5.102 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/1.81, allocations: 223.5 kB / 0.589 GB, free: 4.844 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/1.81, allocations: 12.38 kB / 0.589 GB, free: 4.832 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.644e-05/1.81, allocations: 27.94 kB / 0.5891 GB, free: 4.805 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/1.81, allocations: 260.1 kB / 0.5893 GB, free: 4.531 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/1.81, allocations: 4 kB / 0.5893 GB, free: 4.527 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/1.81, allocations: 4 kB / 0.5893 GB, free: 4.523 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/1.81, allocations: 15.94 kB / 0.5893 GB, free: 4.508 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/1.811, allocations: 145 kB / 0.5895 GB, free: 4.367 MB / 478.1 MB 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.01915/1.83, allocations: 9.488 MB / 0.5987 GB, free: 9.906 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/1.83, allocations: 82.48 kB / 0.5988 GB, free: 9.816 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/1.83, allocations: 60.89 kB / 0.5989 GB, free: 9.754 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1548/1.985, allocations: 77.28 MB / 0.6743 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/1.985, allocations: 30.56 kB / 0.6744 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.134e-06/1.985, allocations: 0 / 0.6744 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.000579/1.986, allocations: 202.8 kB / 0.6746 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/1.986, allocations: 55.34 kB / 0.6746 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/1.986, allocations: 228.8 kB / 0.6748 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/1.986, allocations: 25.7 kB / 0.6749 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.556e-05/1.986, allocations: 140.2 kB / 0.675 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.675e-05/1.986, allocations: 78.83 kB / 0.6751 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.095e-05/1.986, allocations: 37.7 kB / 0.6751 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001213/1.986, allocations: 338.8 kB / 0.6754 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/1.987, allocations: 51.98 kB / 0.6755 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/1.987, allocations: 88.27 kB / 0.6756 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/1.987, allocations: 154.3 kB / 0.6757 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.185e-06/1.987, allocations: 0 / 0.6757 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003489/1.987, allocations: 200.5 kB / 0.6759 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/1.987, allocations: 4 kB / 0.6759 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/1.987, allocations: 4 kB / 0.6759 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/1.987, allocations: 0 / 0.6759 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006683/1.988, allocations: 100 kB / 0.676 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/1.988, allocations: 4 kB / 0.676 GB, free: 1.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/1.988, allocations: 27.67 kB / 0.676 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/1.988, allocations: 4 kB / 0.676 GB, free: 1.875 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.0001048/1.988, allocations: 139.1 kB / 0.6762 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.558e-05/1.988, allocations: 19.72 kB / 0.6762 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004337/1.989, allocations: 329 kB / 0.6765 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002268/1.989, allocations: 151.6 kB / 0.6766 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/1.989, allocations: 3.938 kB / 0.6766 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/1.989, allocations: 0 / 0.6766 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007786/1.99, allocations: 0.621 MB / 0.6772 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/1.99, allocations: 0 / 0.6772 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005532/1.99, allocations: 99.91 kB / 0.6773 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/1.99, allocations: 4 kB / 0.6773 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/1.99, allocations: 0 / 0.6773 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/1.99, allocations: 0 / 0.6773 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/1.99, allocations: 0 / 0.6773 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003747/1.991, allocations: 298.2 kB / 0.6776 GB, free: 108 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/1.991, allocations: 108.9 kB / 0.6777 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/1.991, allocations: 4 kB / 0.6777 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/1.991, allocations: 11.94 kB / 0.6778 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.898e-05/1.991, allocations: 7.984 kB / 0.6778 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/1.991, allocations: 0 / 0.6778 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001904/1.991, allocations: 206 kB / 0.678 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.991, allocations: 4 kB / 0.678 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002834/1.994, allocations: 1.179 MB / 0.6791 GB, free: 14.57 MB / 0.5762 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.005765/2, allocations: 2.443 MB / 0.6815 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004341/2, allocations: 193.5 kB / 0.6817 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/2, allocations: 4.25 kB / 0.6817 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001477/2.001, allocations: 71.91 kB / 0.6818 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006394/2.001, allocations: 114.5 kB / 0.6819 GB, free: 11.74 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004076/2.005, allocations: 2.792 MB / 0.6846 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/2.006, allocations: 0.7519 MB / 0.6853 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001159/2.006, allocations: 29.94 kB / 0.6854 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/2.006, allocations: 83.41 kB / 0.6854 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of SimCode: time 4.31e-07/2.006, allocations: 0 / 0.6854 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2171/2.223, allocations: 46.11 MB / 0.7305 GB, free: 208.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/13.99, allocations: 13.42 kB / 0.7305 GB, free: 208.4 MB / 0.5762 GB (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 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)