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) 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.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8331/0.8331, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.000351, allocations: 19.05 kB / 237.8 MB, free: 1.793 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05761/0.05798, allocations: 31.35 MB / 269.1 MB, free: 7.047 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.624/1.682, allocations: 294.7 MB / 0.5506 GB, free: 13.23 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.545/2.227, allocations: 187.4 MB / 0.7337 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/2.227, allocations: 11.53 kB / 0.7337 GB, free: 1.805 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.0001392/2.227, allocations: 39.47 kB / 0.7337 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002819/2.228, allocations: 112.7 kB / 0.7338 GB, free: 1.805 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.0312/2.259, allocations: 11.31 MB / 0.7449 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005115/2.259, allocations: 383.9 kB / 0.7452 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000285/2.26, allocations: 192.9 kB / 0.7454 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/2.26, allocations: 157.2 kB / 0.7456 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/2.26, allocations: 166.3 kB / 0.7457 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.428e-05/2.26, allocations: 37.02 kB / 0.7458 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03434/2.295, allocations: 19.9 MB / 0.7652 GB, free: 1.199 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000113/2.295, allocations: 73.5 kB / 0.7653 GB, free: 1.188 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003119/2.295, allocations: 177.3 kB / 0.7654 GB, free: 1.18 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02414/2.319, allocations: 9.749 MB / 0.7749 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/2.319, allocations: 4.438 kB / 0.775 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.035e-06/2.319, allocations: 0 / 0.775 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.556e-06/2.319, allocations: 2.031 kB / 0.775 GB, free: 13.62 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.00469/2.324, allocations: 1.743 MB / 0.7767 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/2.324, allocations: 11.86 kB / 0.7767 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.721e-05/2.324, allocations: 39.91 kB / 0.7767 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/2.324, allocations: 295.6 kB / 0.777 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/2.325, allocations: 29.2 kB / 0.777 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.013e-05/2.325, allocations: 36.16 kB / 0.777 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/2.325, allocations: 353.2 kB / 0.7774 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/2.325, allocations: 0.9375 kB / 0.7774 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/2.325, allocations: 15.34 kB / 0.7774 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/2.325, allocations: 8.625 kB / 0.7774 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004263/2.326, allocations: 240 kB / 0.7776 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07467/2.4, allocations: 32.13 MB / 0.809 GB, free: 0.4961 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/2.401, allocations: 77.14 kB / 0.8091 GB, free: 436 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.186e-05/2.401, allocations: 19.86 kB / 0.8091 GB, free: 420 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.239/2.64, allocations: 119 MB / 0.9253 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/2.64, allocations: 30.56 kB / 0.9253 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 2.925e-06/2.64, allocations: 0 / 0.9253 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0004464/2.64, allocations: 122.4 kB / 0.9254 GB, free: 14.3 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/2.64, allocations: 55.34 kB / 0.9255 GB, free: 14.24 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003837/2.641, allocations: 308.4 kB / 0.9258 GB, free: 13.93 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/2.641, allocations: 25.7 kB / 0.9258 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000139/2.641, allocations: 222.1 kB / 0.926 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/2.641, allocations: 23.73 kB / 0.926 GB, free: 13.65 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.51e-05/2.641, allocations: 55.81 kB / 0.9261 GB, free: 13.59 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001087/2.641, allocations: 338.8 kB / 0.9264 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/2.641, allocations: 39.97 kB / 0.9264 GB, free: 13.21 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/2.641, allocations: 144.4 kB / 0.9266 GB, free: 13.03 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002697/2.642, allocations: 190.2 kB / 0.9268 GB, free: 12.81 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/2.642, allocations: 5.094 kB / 0.9268 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004417/2.642, allocations: 226.9 kB / 0.927 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/2.642, allocations: 8.094 kB / 0.927 GB, free: 12.59 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/2.642, allocations: 7.938 kB / 0.927 GB, free: 12.59 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/2.642, allocations: 8 kB / 0.927 GB, free: 12.58 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006403/2.643, allocations: 115 kB / 0.9271 GB, free: 12.47 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/2.643, allocations: 12.14 kB / 0.9271 GB, free: 12.46 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/2.643, allocations: 43.58 kB / 0.9272 GB, free: 12.42 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/2.643, allocations: 16 kB / 0.9272 GB, free: 12.4 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.0001363/2.643, allocations: 142.4 kB / 0.9273 GB, free: 12.26 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.309e-05/2.643, allocations: 25.81 kB / 0.9273 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002812/2.644, allocations: 110.6 kB / 0.9275 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/2.644, allocations: 0 / 0.9275 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/2.644, allocations: 7.938 kB / 0.9275 GB, free: 12.11 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 8.643e-05/2.644, allocations: 100.8 kB / 0.9276 GB, free: 12 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.446e-05/2.644, allocations: 7.094 kB / 0.9276 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.273e-05/2.644, allocations: 10.94 kB / 0.9276 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.007e-05/2.644, allocations: 0 / 0.9276 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006401/2.645, allocations: 220.8 kB / 0.9278 GB, free: 11.76 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003029/2.645, allocations: 277.5 kB / 0.928 GB, free: 11.48 MB / 0.7637 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.804e-05/2.645, allocations: 23.97 kB / 0.9281 GB, free: 11.45 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002074/2.645, allocations: 212.3 kB / 0.9283 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of Backend: time 6.41e-07/2.645, allocations: 0 / 0.9283 GB, free: 11.25 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01406/2.659, allocations: 3.5 MB / 0.9317 GB, free: 8.188 MB / 0.7637 GB Notification: Performance of SimCode: time 0.00113/2.66, allocations: 0.9372 MB / 0.9326 GB, free: 7.203 MB / 0.7637 GB Notification: Performance of Templates: time 0.09267/2.753, allocations: 71.64 MB / 1.003 GB, free: 15.58 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)