Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.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.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8197/0.8197, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002324/0.0002325, allocations: 11.97 kB / 204.7 MB, free: 6.156 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1492, allocations: 31.33 MB / 236 MB, free: 3.879 MB / 186.7 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.Book.SimpleExamples.PressureLoss.TestBend): time 1.657/1.806, allocations: 292.1 MB / 0.5157 GB, free: 9.91 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.5302/2.337, allocations: 191.5 MB / 0.7028 GB, free: 2.723 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004401/2.337, allocations: 8.938 kB / 0.7028 GB, free: 2.723 MB / 0.5573 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/Bend.mo:57:3-58: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/Bend.mo:59:3-60:67: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.000335/2.337, allocations: 192.9 kB / 0.703 GB, free: 2.715 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0004201/2.338, allocations: 258.8 kB / 0.7032 GB, free: 2.707 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.03625/2.374, allocations: 9.46 MB / 0.7125 GB, free: 2.406 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0008881/2.375, allocations: 0.5153 MB / 0.713 GB, free: 2.406 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003137/2.375, allocations: 261.3 kB / 0.7132 GB, free: 2.375 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002839/2.376, allocations: 226.5 kB / 0.7134 GB, free: 2.375 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003213/2.376, allocations: 350.2 kB / 0.7138 GB, free: 2.375 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.861e-05/2.376, allocations: 28.66 kB / 0.7138 GB, free: 2.375 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03817/2.414, allocations: 21.09 MB / 0.7344 GB, free: 15.98 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003407/2.415, allocations: 202 kB / 0.7346 GB, free: 15.94 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0004307/2.415, allocations: 299.4 kB / 0.7349 GB, free: 15.92 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.03456/2.45, allocations: 10.88 MB / 0.7455 GB, free: 11.97 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/2.45, allocations: 0 / 0.7455 GB, free: 11.97 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.216e-06/2.45, allocations: 0.75 kB / 0.7455 GB, free: 11.97 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.291e-05/2.45, allocations: 2.906 kB / 0.7455 GB, free: 11.97 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.007197/2.457, allocations: 2.233 MB / 0.7477 GB, free: 10.55 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/2.457, allocations: 8.281 kB / 0.7477 GB, free: 10.55 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/2.457, allocations: 88.14 kB / 0.7478 GB, free: 10.5 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007268/2.458, allocations: 0.5402 MB / 0.7483 GB, free: 10.15 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.834e-05/2.458, allocations: 34.66 kB / 0.7483 GB, free: 10.14 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.287e-05/2.458, allocations: 40.81 kB / 0.7484 GB, free: 10.14 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007327/2.459, allocations: 492.5 kB / 0.7488 GB, free: 9.957 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/2.459, allocations: 2.219 kB / 0.7488 GB, free: 9.957 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.751e-05/2.459, allocations: 21.91 kB / 0.7489 GB, free: 9.957 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/2.459, allocations: 9.844 kB / 0.7489 GB, free: 9.957 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005515/2.459, allocations: 413.3 kB / 0.7493 GB, free: 9.906 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009476/2.469, allocations: 6.695 MB / 0.7558 GB, free: 3.539 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000521/2.469, allocations: 124.4 kB / 0.7559 GB, free: 3.441 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.691e-05/2.469, allocations: 47.27 kB / 0.756 GB, free: 3.406 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3309/2.8, allocations: 154.7 MB / 0.9071 GB, free: 8.297 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/2.8, allocations: 30.56 kB / 0.9071 GB, free: 8.258 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=11): time 2.375e-06/2.8, allocations: 0 / 0.9071 GB, free: 8.258 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11): time 0.002316/2.803, allocations: 475.4 kB / 0.9075 GB, free: 7.777 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.266e-05/2.803, allocations: 106.8 kB / 0.9076 GB, free: 7.648 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/2.805, allocations: 1.068 MB / 0.9087 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/2.805, allocations: 29.7 kB / 0.9087 GB, free: 6.535 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/2.805, allocations: 392.3 kB / 0.9091 GB, free: 6.152 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/2.805, allocations: 39.45 kB / 0.9091 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/2.805, allocations: 77.45 kB / 0.9092 GB, free: 6.031 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001563/2.805, allocations: 378.8 kB / 0.9096 GB, free: 5.652 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/2.805, allocations: 127.9 kB / 0.9097 GB, free: 5.527 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/2.806, allocations: 260 kB / 0.9099 GB, free: 5.215 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/2.806, allocations: 322.9 kB / 0.9102 GB, free: 4.863 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/2.806, allocations: 8 kB / 0.9102 GB, free: 4.855 MB / 0.7448 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001462/2.808, allocations: 0.5512 MB / 0.9108 GB, free: 4.324 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/2.808, allocations: 7.938 kB / 0.9108 GB, free: 4.316 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/2.808, allocations: 4 kB / 0.9108 GB, free: 4.312 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/2.809, allocations: 199.6 kB / 0.911 GB, free: 4.117 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/2.809, allocations: 46.98 kB / 0.911 GB, free: 4.074 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005916/2.81, allocations: 0.6377 MB / 0.9117 GB, free: 3.422 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003671/2.81, allocations: 47.52 kB / 0.9117 GB, free: 3.375 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.353e-05/2.81, allocations: 16 kB / 0.9117 GB, free: 3.359 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003062/2.811, allocations: 263.5 kB / 0.912 GB, free: 3.098 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/2.811, allocations: 67.16 kB / 0.912 GB, free: 3.031 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00072/2.811, allocations: 258.3 kB / 0.9123 GB, free: 2.77 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/2.812, allocations: 4 kB / 0.9123 GB, free: 2.766 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/2.812, allocations: 4 kB / 0.9123 GB, free: 2.762 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/2.812, allocations: 0 / 0.9123 GB, free: 2.762 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/2.814, allocations: 0.8306 MB / 0.9131 GB, free: 1.879 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/2.814, allocations: 12.03 kB / 0.9131 GB, free: 1.867 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.29e-05/2.814, allocations: 4 kB / 0.9131 GB, free: 1.863 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/2.815, allocations: 182.4 kB / 0.9133 GB, free: 1.688 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/2.815, allocations: 5.094 kB / 0.9133 GB, free: 1.684 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005385/2.815, allocations: 0.629 MB / 0.9139 GB, free: 1.035 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/2.815, allocations: 4.031 kB / 0.9139 GB, free: 1.031 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/2.818, allocations: 1.211 MB / 0.9151 GB, free: 15.77 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002692/2.818, allocations: 176.2 kB / 0.9153 GB, free: 15.58 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.117e-05/2.818, allocations: 8 kB / 0.9153 GB, free: 15.57 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/2.818, allocations: 4 kB / 0.9153 GB, free: 15.57 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/2.818, allocations: 7.984 kB / 0.9153 GB, free: 15.56 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/2.818, allocations: 4 kB / 0.9153 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.000963/2.819, allocations: 0.788 MB / 0.916 GB, free: 14.77 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.5e-07/2.819, allocations: 1.094 kB / 0.916 GB, free: 14.77 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.005838/2.825, allocations: 1.706 MB / 0.9177 GB, free: 13.06 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 2 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01089/2.836, allocations: 2.579 MB / 0.9202 GB, free: 10.79 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0008404/2.837, allocations: 239 kB / 0.9205 GB, free: 10.57 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/2.837, allocations: 320 / 0.9205 GB, free: 10.57 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002132/2.837, allocations: 55.97 kB / 0.9205 GB, free: 10.52 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/2.838, allocations: 87.08 kB / 0.9206 GB, free: 10.43 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/2.84, allocations: 1.39 MB / 0.922 GB, free: 9.004 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006671/2.841, allocations: 0.9289 MB / 0.9229 GB, free: 8.051 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0002816/2.841, allocations: 79.08 kB / 0.9229 GB, free: 7.977 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/2.842, allocations: 35.44 kB / 0.923 GB, free: 7.941 MB / 0.7605 GB Notification: Performance of SimCode: time 7.91e-07/2.842, allocations: 0 / 0.923 GB, free: 7.941 MB / 0.7605 GB Notification: Performance of Templates: time 0.2819/3.123, allocations: 51.73 MB / 0.9735 GB, free: 434.5 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)