Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8476/0.8476, allocations: 150.8 MB / 166.5 MB, free: 14.15 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003871/0.0003871, allocations: 21.39 kB / 237.1 MB, free: 1.852 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05987/0.06028, allocations: 31.35 MB / 268.4 MB, free: 7.027 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.TestSingularPressureLoss): time 1.671/1.731, allocations: 294.8 MB / 0.55 GB, free: 13.24 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5113/2.242, allocations: 187.4 MB / 0.733 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003315/2.243, allocations: 8.375 kB / 0.733 GB, free: 1.793 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59: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/SingularPressureLoss.mo:27:3-28: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/SingularPressureLoss.mo:29:3-30: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.0001403/2.243, allocations: 39.64 kB / 0.7331 GB, free: 1.793 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002928/2.243, allocations: 108.9 kB / 0.7332 GB, free: 1.793 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.02814/2.271, allocations: 11.52 MB / 0.7444 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004491/2.272, allocations: 374.2 kB / 0.7448 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002323/2.272, allocations: 185.1 kB / 0.7449 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/2.272, allocations: 150.7 kB / 0.7451 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/2.272, allocations: 161 kB / 0.7452 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.926e-05/2.272, allocations: 33.06 kB / 0.7453 GB, free: 1.574 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03356/2.306, allocations: 19.9 MB / 0.7647 GB, free: 1.203 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001611/2.306, allocations: 67.27 kB / 0.7648 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002896/2.306, allocations: 178.4 kB / 0.7649 GB, free: 1.184 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02413/2.331, allocations: 9.733 MB / 0.7744 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/2.331, allocations: 1.203 kB / 0.7744 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/2.331, allocations: 0.9688 kB / 0.7744 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.766e-06/2.331, allocations: 0 / 0.7744 GB, free: 13.65 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.004741/2.335, allocations: 1.729 MB / 0.7761 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/2.335, allocations: 17.55 kB / 0.7762 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.26e-05/2.336, allocations: 41.97 kB / 0.7762 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/2.336, allocations: 290.9 kB / 0.7765 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/2.336, allocations: 25.25 kB / 0.7765 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.862e-05/2.336, allocations: 33.34 kB / 0.7765 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000505/2.337, allocations: 344.8 kB / 0.7769 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/2.337, allocations: 6.594 kB / 0.7769 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/2.337, allocations: 13.78 kB / 0.7769 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/2.337, allocations: 15.47 kB / 0.7769 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000362/2.337, allocations: 214.9 kB / 0.7771 GB, free: 12.09 MB / 0.6075 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.008455/2.345, allocations: 6.084 MB / 0.783 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001586/2.346, allocations: 54.06 kB / 0.7831 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.366e-05/2.346, allocations: 27.67 kB / 0.7831 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.168/2.514, allocations: 71.38 MB / 0.8528 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.55e-05/2.514, allocations: 39.8 kB / 0.8529 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 2.615e-06/2.514, allocations: 0 / 0.8529 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.000712/2.514, allocations: 224.7 kB / 0.8531 GB, free: 14.66 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/2.515, allocations: 56.61 kB / 0.8531 GB, free: 14.6 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/2.515, allocations: 273.2 kB / 0.8534 GB, free: 14.37 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/2.515, allocations: 30.33 kB / 0.8534 GB, free: 14.34 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/2.515, allocations: 226.6 kB / 0.8536 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/2.515, allocations: 21.91 kB / 0.8536 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.083e-05/2.515, allocations: 56.12 kB / 0.8537 GB, free: 14.08 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001486/2.515, allocations: 339.4 kB / 0.854 GB, free: 13.75 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/2.515, allocations: 37.67 kB / 0.8541 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/2.516, allocations: 136.3 kB / 0.8542 GB, free: 13.56 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002362/2.516, allocations: 190.3 kB / 0.8544 GB, free: 13.38 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/2.516, allocations: 0 / 0.8544 GB, free: 13.38 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004886/2.516, allocations: 237.8 kB / 0.8546 GB, free: 13.2 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/2.516, allocations: 11.22 kB / 0.8546 GB, free: 13.19 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/2.516, allocations: 8.094 kB / 0.8546 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008627/2.517, allocations: 122.2 kB / 0.8547 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/2.518, allocations: 31.08 kB / 0.8548 GB, free: 13.04 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00045/2.518, allocations: 0.5678 MB / 0.8553 GB, free: 12.47 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000179/2.518, allocations: 26.81 kB / 0.8553 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/2.518, allocations: 12 kB / 0.8554 GB, free: 12.43 MB / 0.6856 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 (singularPressureLoss.fluid,SourceP1.C.ftype,PuitsP1.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,singularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001928/2.518, allocations: 155 kB / 0.8555 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.949e-05/2.518, allocations: 20.81 kB / 0.8555 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003306/2.519, allocations: 140.9 kB / 0.8557 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/2.519, allocations: 0 / 0.8557 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/2.519, allocations: 0 / 0.8557 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/2.519, allocations: 4 kB / 0.8557 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000311/2.519, allocations: 284.4 kB / 0.8559 GB, free: 11.86 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/2.519, allocations: 0 / 0.8559 GB, free: 11.86 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.556e-05/2.519, allocations: 4 kB / 0.8559 GB, free: 11.86 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004173/2.52, allocations: 77.83 kB / 0.856 GB, free: 11.79 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/2.52, allocations: 0 / 0.856 GB, free: 11.79 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004139/2.52, allocations: 0.5656 MB / 0.8566 GB, free: 11.22 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/2.52, allocations: 0 / 0.8566 GB, free: 11.22 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/2.52, allocations: 144.5 kB / 0.8567 GB, free: 11.08 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 7.255e-05/2.52, allocations: 94.52 kB / 0.8568 GB, free: 10.97 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.411e-05/2.52, allocations: 3.984 kB / 0.8568 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.388e-05/2.521, allocations: 5.812 kB / 0.8568 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.074e-05/2.521, allocations: 4 kB / 0.8568 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/2.521, allocations: 0 / 0.8568 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002058/2.521, allocations: 201.6 kB / 0.857 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2e-07/2.521, allocations: 0 / 0.857 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.004305/2.525, allocations: 1.439 MB / 0.8584 GB, free: 9.461 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007638/2.533, allocations: 2.205 MB / 0.8606 GB, free: 7.582 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004255/2.533, allocations: 112.4 kB / 0.8607 GB, free: 7.508 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/2.533, allocations: 0 / 0.8607 GB, free: 7.508 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/2.533, allocations: 23.48 kB / 0.8607 GB, free: 7.488 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/2.534, allocations: 71.09 kB / 0.8608 GB, free: 7.441 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008456/2.535, allocations: 424.8 kB / 0.8612 GB, free: 7.027 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/2.535, allocations: 0.7569 MB / 0.8619 GB, free: 6.246 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001218/2.535, allocations: 32.95 kB / 0.8619 GB, free: 6.219 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.418e-05/2.535, allocations: 27.44 kB / 0.862 GB, free: 6.191 MB / 0.6856 GB Notification: Performance of SimCode: time 2.2e-07/2.535, allocations: 0 / 0.862 GB, free: 6.191 MB / 0.6856 GB Notification: Performance of Templates: time 0.06252/2.598, allocations: 45.37 MB / 0.9063 GB, free: 8.883 MB / 0.7325 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)