Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8367/0.8367, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.866e-05/1.867e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1913, allocations: 31.97 MB / 236.8 MB, free: 5.449 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.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.722/1.913, allocations: 293.6 MB / 0.5179 GB, free: 13.38 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2129/2.126, allocations: 186.1 MB / 0.6997 GB, free: 2.848 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003423/2.127, allocations: 7.938 kB / 0.6997 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 9.707e-05/2.127, allocations: 27.77 kB / 0.6997 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003862/2.127, allocations: 103.2 kB / 0.6998 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.4333/2.56, allocations: 8.806 MB / 0.7084 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008003/2.561, allocations: 370.7 kB / 0.7088 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003418/2.562, allocations: 162.9 kB / 0.709 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002291/2.562, allocations: 119.7 kB / 0.7091 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/2.562, allocations: 139.3 kB / 0.7092 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.723e-05/2.562, allocations: 13.25 kB / 0.7092 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03762/2.6, allocations: 20 MB / 0.7287 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001746/2.6, allocations: 43.28 kB / 0.7288 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003463/2.6, allocations: 178.8 kB / 0.729 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03293/2.633, allocations: 9.763 MB / 0.7385 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/2.633, allocations: 3 kB / 0.7385 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.376e-06/2.633, allocations: 2.156 kB / 0.7385 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.647e-05/2.633, allocations: 0 / 0.7385 GB, free: 2.836 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.005995/2.639, allocations: 1.673 MB / 0.7401 GB, free: 1.711 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/2.639, allocations: 10.81 kB / 0.7401 GB, free: 1.711 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.814e-05/2.64, allocations: 47.52 kB / 0.7402 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/2.64, allocations: 281.8 kB / 0.7405 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/2.64, allocations: 26.56 kB / 0.7405 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/2.64, allocations: 34.12 kB / 0.7405 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005244/2.64, allocations: 356.7 kB / 0.7409 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/2.64, allocations: 0.8438 kB / 0.7409 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/2.641, allocations: 21.78 kB / 0.7409 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/2.641, allocations: 6.438 kB / 0.7409 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003728/2.641, allocations: 225.6 kB / 0.7411 GB, free: 1.27 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.008353/2.649, allocations: 6.119 MB / 0.7471 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002266/2.65, allocations: 73.78 kB / 0.7471 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.42e-05/2.65, allocations: 35.5 kB / 0.7472 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.235/2.885, allocations: 119.3 MB / 0.8636 GB, free: 3.961 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/2.885, allocations: 38.06 kB / 0.8637 GB, free: 3.918 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 1.873e-06/2.885, allocations: 0 / 0.8637 GB, free: 3.918 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0009135/2.886, allocations: 272.9 kB / 0.8639 GB, free: 3.652 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/2.886, allocations: 56.03 kB / 0.864 GB, free: 3.59 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/2.886, allocations: 282.4 kB / 0.8643 GB, free: 3.355 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/2.886, allocations: 31.02 kB / 0.8643 GB, free: 3.324 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/2.886, allocations: 226.7 kB / 0.8645 GB, free: 3.133 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 2.193e-05/2.886, allocations: 31.27 kB / 0.8645 GB, free: 3.105 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.662e-05/2.886, allocations: 29.09 kB / 0.8646 GB, free: 3.078 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001067/2.886, allocations: 333.8 kB / 0.8649 GB, free: 2.754 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.538e-05/2.886, allocations: 43.16 kB / 0.8649 GB, free: 2.723 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/2.887, allocations: 141.9 kB / 0.8651 GB, free: 2.562 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/2.887, allocations: 191 kB / 0.8652 GB, free: 2.383 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/2.887, allocations: 0 / 0.8652 GB, free: 2.383 MB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000488/2.887, allocations: 275.3 kB / 0.8655 GB, free: 2.176 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/2.887, allocations: 13.28 kB / 0.8655 GB, free: 2.164 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/2.887, allocations: 4 kB / 0.8655 GB, free: 2.16 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009188/2.888, allocations: 159.9 kB / 0.8657 GB, free: 2.012 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/2.888, allocations: 38.89 kB / 0.8657 GB, free: 1.977 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004013/2.889, allocations: 0.58 MB / 0.8663 GB, free: 1.402 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/2.889, allocations: 35.25 kB / 0.8663 GB, free: 1.371 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/2.889, allocations: 11.98 kB / 0.8663 GB, free: 1.359 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,pipePressureLoss.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,pipePressureLoss.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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001445/2.889, allocations: 144.6 kB / 0.8665 GB, free: 1.23 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.06e-05/2.889, allocations: 30.69 kB / 0.8665 GB, free: 1.203 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003696/2.89, allocations: 160.7 kB / 0.8666 GB, free: 1.074 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/2.89, allocations: 8 kB / 0.8667 GB, free: 1.066 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/2.89, allocations: 4.062 kB / 0.8667 GB, free: 1.062 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/2.89, allocations: 1.859 kB / 0.8667 GB, free: 1.062 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/2.89, allocations: 297.4 kB / 0.8669 GB, free: 0.7695 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/2.89, allocations: 0 / 0.8669 GB, free: 0.7695 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.426e-05/2.89, allocations: 11.83 kB / 0.867 GB, free: 0.7617 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004959/2.89, allocations: 104 kB / 0.8671 GB, free: 0.6641 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/2.89, allocations: 7.625 kB / 0.8671 GB, free: 0.6602 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003612/2.891, allocations: 0.5872 MB / 0.8676 GB, free: 88 kB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/2.891, allocations: 0 / 0.8676 GB, free: 88 kB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/2.891, allocations: 165.9 kB / 0.8678 GB, free: 15.93 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.742e-05/2.891, allocations: 100.6 kB / 0.8679 GB, free: 15.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/2.891, allocations: 4 kB / 0.8679 GB, free: 15.81 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.497e-05/2.891, allocations: 3.562 kB / 0.8679 GB, free: 15.81 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/2.891, allocations: 7.984 kB / 0.8679 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/2.891, allocations: 0 / 0.8679 GB, free: 15.8 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002136/2.892, allocations: 206.8 kB / 0.8681 GB, free: 15.64 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/2.892, allocations: 1.859 kB / 0.8681 GB, free: 15.64 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004024/2.896, allocations: 1.451 MB / 0.8695 GB, free: 14.29 MB / 0.7169 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005961/2.902, allocations: 2.24 MB / 0.8717 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003581/2.902, allocations: 117.4 kB / 0.8718 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/2.902, allocations: 0 / 0.8718 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.347e-05/2.902, allocations: 35.28 kB / 0.8719 GB, free: 12.24 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004149/2.903, allocations: 64.28 kB / 0.8719 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008546/2.903, allocations: 0.5729 MB / 0.8725 GB, free: 11.62 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/2.904, allocations: 0.7635 MB / 0.8732 GB, free: 10.83 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001273/2.904, allocations: 34.23 kB / 0.8733 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.603e-05/2.904, allocations: 23.44 kB / 0.8733 GB, free: 10.78 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/2.904, allocations: 0 / 0.8733 GB, free: 10.78 MB / 0.7169 GB Notification: Performance of Templates: time 0.05617/2.96, allocations: 45.04 MB / 0.9173 GB, free: 13.86 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1) Environment - environmentSimulation: