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.7995/0.7995, allocations: 150.9 MB / 166 MB, free: 14.31 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003066, allocations: 11.98 kB / 204 MB, free: 9.664 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1547, allocations: 31.33 MB / 235.4 MB, free: 5.445 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.Fluid.Examples.SimpleExamples.TestSingularPressureLoss): time 1.647/1.802, allocations: 292.7 MB / 0.5156 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2012/2.003, allocations: 188.3 MB / 0.6996 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/2.003, allocations: 4 kB / 0.6996 GB, free: 1.121 MB / 0.5762 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.0001449/2.004, allocations: 28.61 kB / 0.6996 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003598/2.004, allocations: 99.22 kB / 0.6997 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3353/2.339, allocations: 8.626 MB / 0.7081 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005384/2.34, allocations: 354.5 kB / 0.7084 GB, free: 4.234 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003229/2.34, allocations: 185.6 kB / 0.7086 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/2.34, allocations: 131 kB / 0.7088 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002444/2.341, allocations: 156.8 kB / 0.7089 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.574e-05/2.341, allocations: 24.56 kB / 0.7089 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03469/2.375, allocations: 19.9 MB / 0.7284 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001261/2.376, allocations: 63.19 kB / 0.7284 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002814/2.376, allocations: 169.4 kB / 0.7286 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02148/2.397, allocations: 9.853 MB / 0.7382 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/2.397, allocations: 3.312 kB / 0.7382 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.653e-06/2.397, allocations: 0 / 0.7382 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.193e-06/2.397, allocations: 0 / 0.7382 GB, free: 1.941 MB / 0.5762 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.004386/2.402, allocations: 1.735 MB / 0.7399 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/2.402, allocations: 8.531 kB / 0.7399 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.244e-05/2.402, allocations: 47.81 kB / 0.74 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/2.402, allocations: 282.8 kB / 0.7402 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/2.402, allocations: 27.88 kB / 0.7403 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.717e-05/2.402, allocations: 32.44 kB / 0.7403 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/2.403, allocations: 341 kB / 0.7406 GB, free: 412 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/2.403, allocations: 2.141 kB / 0.7406 GB, free: 412 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/2.403, allocations: 18.09 kB / 0.7406 GB, free: 408 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/2.403, allocations: 7.5 kB / 0.7406 GB, free: 408 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003308/2.403, allocations: 217.2 kB / 0.7408 GB, free: 380 kB / 0.5762 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.007616/2.411, allocations: 6.09 MB / 0.7468 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/2.411, allocations: 55.91 kB / 0.7468 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.077e-05/2.411, allocations: 19.86 kB / 0.7469 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.138/2.549, allocations: 70.91 MB / 0.8161 GB, free: 6.902 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/2.549, allocations: 30.56 kB / 0.8161 GB, free: 6.863 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 1.653e-06/2.549, allocations: 1.094 kB / 0.8161 GB, free: 6.863 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0006853/2.55, allocations: 235.8 kB / 0.8164 GB, free: 6.633 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/2.55, allocations: 55.41 kB / 0.8164 GB, free: 6.566 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/2.55, allocations: 271.6 kB / 0.8167 GB, free: 6.34 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/2.55, allocations: 25.7 kB / 0.8167 GB, free: 6.309 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/2.55, allocations: 225.2 kB / 0.8169 GB, free: 6.121 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/2.55, allocations: 25.56 kB / 0.8169 GB, free: 6.102 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-05/2.55, allocations: 51.48 kB / 0.817 GB, free: 6.059 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000117/2.551, allocations: 342.8 kB / 0.8173 GB, free: 5.727 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.706e-05/2.551, allocations: 34.11 kB / 0.8173 GB, free: 5.703 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/2.551, allocations: 138.3 kB / 0.8175 GB, free: 5.539 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/2.551, allocations: 181.8 kB / 0.8177 GB, free: 5.359 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/2.551, allocations: 4 kB / 0.8177 GB, free: 5.355 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004295/2.551, allocations: 250.4 kB / 0.8179 GB, free: 5.168 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/2.552, allocations: 4 kB / 0.8179 GB, free: 5.164 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/2.552, allocations: 4 kB / 0.8179 GB, free: 5.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008296/2.552, allocations: 124.2 kB / 0.818 GB, free: 5.043 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/2.552, allocations: 34.89 kB / 0.8181 GB, free: 5.012 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004512/2.553, allocations: 0.5663 MB / 0.8186 GB, free: 4.441 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/2.553, allocations: 28.69 kB / 0.8186 GB, free: 4.414 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/2.553, allocations: 15.75 kB / 0.8186 GB, free: 4.402 MB / 0.6544 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.0001338/2.553, allocations: 144.8 kB / 0.8188 GB, free: 4.273 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.414e-05/2.553, allocations: 23.75 kB / 0.8188 GB, free: 4.25 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003294/2.554, allocations: 137.2 kB / 0.8189 GB, free: 4.125 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/2.554, allocations: 2.906 kB / 0.8189 GB, free: 4.125 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/2.554, allocations: 0 / 0.8189 GB, free: 4.125 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/2.554, allocations: 0 / 0.8189 GB, free: 4.125 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/2.554, allocations: 291.1 kB / 0.8192 GB, free: 3.836 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/2.554, allocations: 7.938 kB / 0.8192 GB, free: 3.828 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.225e-05/2.554, allocations: 1.094 kB / 0.8192 GB, free: 3.828 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004505/2.554, allocations: 71.89 kB / 0.8193 GB, free: 3.758 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.148e-06/2.554, allocations: 7.75 kB / 0.8193 GB, free: 3.754 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003613/2.555, allocations: 0.5602 MB / 0.8199 GB, free: 3.188 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/2.555, allocations: 4.031 kB / 0.8199 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002469/2.555, allocations: 127.5 kB / 0.82 GB, free: 3.055 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-05/2.555, allocations: 103.3 kB / 0.8201 GB, free: 2.941 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.141e-05/2.555, allocations: 3.844 kB / 0.8201 GB, free: 2.941 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.16e-05/2.555, allocations: 4 kB / 0.8201 GB, free: 2.938 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.811e-05/2.555, allocations: 8.047 kB / 0.8201 GB, free: 2.93 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/2.555, allocations: 9.141 kB / 0.8201 GB, free: 2.922 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001926/2.556, allocations: 200.4 kB / 0.8203 GB, free: 2.766 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/2.556, allocations: 0 / 0.8203 GB, free: 2.766 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.003844/2.559, allocations: 1.441 MB / 0.8217 GB, free: 1.426 MB / 0.6544 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.006337/2.566, allocations: 2.281 MB / 0.8239 GB, free: 15.48 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0003934/2.566, allocations: 105.4 kB / 0.824 GB, free: 15.41 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/2.566, allocations: 192 / 0.824 GB, free: 15.41 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 9.469e-05/2.566, allocations: 30.98 kB / 0.8241 GB, free: 15.39 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/2.567, allocations: 60.53 kB / 0.8241 GB, free: 15.34 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007543/2.567, allocations: 0.5174 MB / 0.8246 GB, free: 14.82 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/2.568, allocations: 0.7635 MB / 0.8254 GB, free: 14.04 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001316/2.568, allocations: 39.11 kB / 0.8254 GB, free: 14 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/2.568, allocations: 19.44 kB / 0.8254 GB, free: 13.98 MB / 0.67 GB Notification: Performance of SimCode: time 2.3e-07/2.568, allocations: 0 / 0.8254 GB, free: 13.98 MB / 0.67 GB Notification: Performance of Templates: time 0.05532/2.623, allocations: 45.47 MB / 0.8698 GB, free: 0.6211 MB / 0.7012 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)