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.8665/0.8665, allocations: 150.8 MB / 166.1 MB, free: 15.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.237e-05/2.237e-05, allocations: 4 kB / 204.8 MB, free: 10.19 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2119, allocations: 31.98 MB / 236.8 MB, free: 5.379 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss): time 1.823/2.035, allocations: 293.6 MB / 0.5179 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.219/2.254, allocations: 186.1 MB / 0.6997 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002986/2.254, allocations: 7.938 kB / 0.6997 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 9.848e-05/2.254, allocations: 27.77 kB / 0.6998 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004253/2.255, allocations: 95.22 kB / 0.6998 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.4105/2.665, allocations: 8.794 MB / 0.7084 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006486/2.666, allocations: 355.5 kB / 0.7088 GB, free: 5.324 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003033/2.666, allocations: 155.5 kB / 0.7089 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/2.666, allocations: 113.9 kB / 0.709 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/2.667, allocations: 126.8 kB / 0.7091 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.258e-05/2.667, allocations: 14.81 kB / 0.7092 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03864/2.705, allocations: 20 MB / 0.7287 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001656/2.705, allocations: 51.62 kB / 0.7287 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003337/2.706, allocations: 175 kB / 0.7289 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0313/2.737, allocations: 9.748 MB / 0.7384 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/2.737, allocations: 0 / 0.7384 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of FrontEnd: time 4.218e-06/2.737, allocations: 3.562 kB / 0.7384 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.488e-06/2.737, allocations: 0 / 0.7384 GB, free: 2.832 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.006062/2.743, allocations: 1.668 MB / 0.7401 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/2.743, allocations: 9.469 kB / 0.7401 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.93e-05/2.743, allocations: 44.28 kB / 0.7401 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/2.744, allocations: 283.9 kB / 0.7404 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.853e-05/2.744, allocations: 26.88 kB / 0.7404 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/2.744, allocations: 35.67 kB / 0.7404 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000511/2.744, allocations: 344.5 kB / 0.7408 GB, free: 1.297 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/2.744, allocations: 3.812 kB / 0.7408 GB, free: 1.297 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/2.744, allocations: 17.91 kB / 0.7408 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/2.744, allocations: 11.56 kB / 0.7408 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003514/2.745, allocations: 216 kB / 0.741 GB, free: 1.266 MB / 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.008452/2.753, allocations: 6.089 MB / 0.7469 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001401/2.753, allocations: 56.45 kB / 0.747 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.274e-05/2.753, allocations: 18.39 kB / 0.747 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1591/2.913, allocations: 71.59 MB / 0.8169 GB, free: 9.195 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.249e-05/2.913, allocations: 37.47 kB / 0.817 GB, free: 9.152 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 2.895e-06/2.913, allocations: 0 / 0.817 GB, free: 9.152 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0008219/2.913, allocations: 228.4 kB / 0.8172 GB, free: 8.926 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/2.914, allocations: 51.41 kB / 0.8172 GB, free: 8.863 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003953/2.914, allocations: 282 kB / 0.8175 GB, free: 8.629 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/2.914, allocations: 25.7 kB / 0.8175 GB, free: 8.598 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/2.914, allocations: 220.4 kB / 0.8177 GB, free: 8.41 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/2.914, allocations: 19.73 kB / 0.8178 GB, free: 8.391 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.258e-05/2.914, allocations: 32.77 kB / 0.8178 GB, free: 8.363 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001496/2.914, allocations: 334.5 kB / 0.8181 GB, free: 8.039 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.966e-05/2.914, allocations: 43.03 kB / 0.8181 GB, free: 8.008 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/2.915, allocations: 138.5 kB / 0.8183 GB, free: 7.848 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/2.915, allocations: 181.8 kB / 0.8185 GB, free: 7.664 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/2.915, allocations: 0 / 0.8185 GB, free: 7.664 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000559/2.915, allocations: 249.7 kB / 0.8187 GB, free: 7.477 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/2.916, allocations: 8 kB / 0.8187 GB, free: 7.469 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/2.916, allocations: 5.781 kB / 0.8187 GB, free: 7.465 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009088/2.916, allocations: 148.3 kB / 0.8188 GB, free: 7.324 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/2.917, allocations: 37.8 kB / 0.8189 GB, free: 7.293 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000454/2.917, allocations: 0.5652 MB / 0.8194 GB, free: 6.723 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/2.917, allocations: 31.42 kB / 0.8195 GB, free: 6.695 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/2.917, allocations: 12 kB / 0.8195 GB, free: 6.684 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.0001816/2.917, allocations: 144.1 kB / 0.8196 GB, free: 6.555 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.981e-05/2.918, allocations: 23.66 kB / 0.8196 GB, free: 6.531 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003538/2.918, allocations: 129.8 kB / 0.8198 GB, free: 6.414 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/2.918, allocations: 0 / 0.8198 GB, free: 6.414 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/2.918, allocations: 1.922 kB / 0.8198 GB, free: 6.414 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/2.918, allocations: 7.984 kB / 0.8198 GB, free: 6.406 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003294/2.918, allocations: 296.4 kB / 0.82 GB, free: 6.117 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/2.918, allocations: 7.938 kB / 0.8201 GB, free: 6.109 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.537e-05/2.918, allocations: 7.844 kB / 0.8201 GB, free: 6.105 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004631/2.919, allocations: 83.36 kB / 0.8201 GB, free: 6.027 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/2.919, allocations: 0 / 0.8201 GB, free: 6.027 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004417/2.919, allocations: 0.5583 MB / 0.8207 GB, free: 5.465 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/2.919, allocations: 0 / 0.8207 GB, free: 5.465 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002627/2.92, allocations: 139.3 kB / 0.8208 GB, free: 5.324 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/2.92, allocations: 104.6 kB / 0.8209 GB, free: 5.207 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/2.92, allocations: 0 / 0.8209 GB, free: 5.207 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.095e-05/2.92, allocations: 4 kB / 0.8209 GB, free: 5.203 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.725e-05/2.92, allocations: 3.625 kB / 0.8209 GB, free: 5.203 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/2.92, allocations: 7.938 kB / 0.8209 GB, free: 5.195 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000216/2.92, allocations: 199.2 kB / 0.8211 GB, free: 5.035 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.463e-06/2.92, allocations: 0 / 0.8211 GB, free: 5.035 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.005325/2.925, allocations: 1.437 MB / 0.8225 GB, free: 3.695 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.009512/2.935, allocations: 2.245 MB / 0.8247 GB, free: 1.758 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005045/2.935, allocations: 111 kB / 0.8248 GB, free: 1.68 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/2.935, allocations: 2.953 kB / 0.8248 GB, free: 1.68 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/2.936, allocations: 26.8 kB / 0.8249 GB, free: 1.66 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005063/2.936, allocations: 66.78 kB / 0.8249 GB, free: 1.617 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/2.937, allocations: 0.5402 MB / 0.8254 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004221/2.938, allocations: 0.7575 MB / 0.8262 GB, free: 304 kB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001577/2.938, allocations: 34.5 kB / 0.8262 GB, free: 272 kB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.039e-05/2.938, allocations: 23.44 kB / 0.8262 GB, free: 248 kB / 0.6544 GB Notification: Performance of SimCode: time 7.22e-07/2.938, allocations: 4 kB / 0.8262 GB, free: 244 kB / 0.6544 GB Notification: Performance of Templates: time 0.06558/3.003, allocations: 44.84 MB / 0.87 GB, free: 3.531 MB / 0.7012 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: