Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.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.Examples.SimpleExamples.TestRefP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP") translateModel(ThermoSysPro.Examples.SimpleExamples.TestRefP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7342/0.7342, allocations: 150.8 MB / 166.1 MB, free: 15.12 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.425e-05/1.434e-05, allocations: 4 kB / 204.8 MB, free: 9.695 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1284, allocations: 31.97 MB / 236.8 MB, free: 5.531 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.Examples.SimpleExamples.TestRefP): time 1.386/1.514, allocations: 294.3 MB / 0.5186 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.167/1.681, allocations: 185.4 MB / 0.6997 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001978/1.681, allocations: 4 kB / 0.6997 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003062/1.682, allocations: 103.3 kB / 0.6998 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003095/1.682, allocations: 127 kB / 0.6999 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2583/1.94, allocations: 8.814 MB / 0.7085 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005823/1.941, allocations: 0.5337 MB / 0.709 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002722/1.941, allocations: 236.5 kB / 0.7092 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/1.942, allocations: 190.5 kB / 0.7094 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001969/1.942, allocations: 201.6 kB / 0.7096 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.163e-05/1.942, allocations: 16.94 kB / 0.7096 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02626/1.968, allocations: 20.15 MB / 0.7293 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001144/1.968, allocations: 69.39 kB / 0.7294 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002801/1.969, allocations: 242 kB / 0.7296 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01617/1.985, allocations: 9.916 MB / 0.7393 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/1.985, allocations: 5.25 kB / 0.7393 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.373e-06/1.985, allocations: 0 / 0.7393 GB, free: 2.68 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.053e-05/1.985, allocations: 3.844 kB / 0.7393 GB, free: 2.68 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003618/1.988, allocations: 1.789 MB / 0.7411 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/1.988, allocations: 9.031 kB / 0.7411 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.574e-05/1.989, allocations: 56.91 kB / 0.7411 GB, free: 1.465 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/1.989, allocations: 316.8 kB / 0.7414 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.78e-05/1.989, allocations: 32.47 kB / 0.7415 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.913e-05/1.989, allocations: 37.34 kB / 0.7415 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000641/1.99, allocations: 0.5344 MB / 0.742 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/1.99, allocations: 0 / 0.742 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/1.99, allocations: 20.03 kB / 0.742 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/1.99, allocations: 18.7 kB / 0.742 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004946/1.99, allocations: 332.8 kB / 0.7424 GB, free: 0.9336 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.01835/2.008, allocations: 11.98 MB / 0.7541 GB, free: 7.547 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000955/2.009, allocations: 330.2 kB / 0.7544 GB, free: 7.477 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/2.01, allocations: 143.4 kB / 0.7545 GB, free: 7.453 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2125/2.222, allocations: 118.3 MB / 0.87 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/2.222, allocations: 38.94 kB / 0.8701 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=43): time 2.174e-06/2.222, allocations: 0 / 0.8701 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of matching and sorting (n=43): time 0.007068/2.229, allocations: 1.717 MB / 0.8717 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/2.229, allocations: 55.41 kB / 0.8718 GB, free: 11.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/2.23, allocations: 318.2 kB / 0.8721 GB, free: 11.58 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/2.23, allocations: 29.2 kB / 0.8721 GB, free: 11.55 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/2.23, allocations: 232 kB / 0.8723 GB, free: 11.37 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.342e-05/2.23, allocations: 149.7 kB / 0.8725 GB, free: 11.24 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.377e-05/2.23, allocations: 48.38 kB / 0.8725 GB, free: 11.2 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001177/2.23, allocations: 345.5 kB / 0.8729 GB, free: 10.87 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002228/2.23, allocations: 120.5 kB / 0.873 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002795/2.231, allocations: 219 kB / 0.8732 GB, free: 10.6 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005085/2.231, allocations: 378.5 kB / 0.8735 GB, free: 10.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/2.231, allocations: 8.766 kB / 0.8736 GB, free: 10.31 MB / 0.7169 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001952/2.233, allocations: 0.7146 MB / 0.8743 GB, free: 9.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/2.233, allocations: 9.406 kB / 0.8743 GB, free: 9.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/2.233, allocations: 3.844 kB / 0.8743 GB, free: 9.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001447/2.235, allocations: 472.4 kB / 0.8747 GB, free: 9.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.562e-05/2.235, allocations: 22.89 kB / 0.8747 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008188/2.236, allocations: 0.856 MB / 0.8756 GB, free: 8.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/2.236, allocations: 50.91 kB / 0.8756 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.678e-05/2.236, allocations: 15.98 kB / 0.8756 GB, free: 8.527 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,refT.C2.b,refT.C1.a,loopBreakerH.C2.b,loopBreakerH.C1.a,loopBreakerQ.C2.b,loopBreakerQ.C1.a,pump.C2.b,pump.C1.a,refP.C2.b,refP.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(6,33.3%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems 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 {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001648/2.236, allocations: 172.5 kB / 0.8758 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.807e-05/2.236, allocations: 43.53 kB / 0.8758 GB, free: 8.344 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/2.237, allocations: 0.7543 MB / 0.8766 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009792/2.238, allocations: 0.5989 MB / 0.8772 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/2.238, allocations: 3.984 kB / 0.8772 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/2.238, allocations: 0 / 0.8772 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002014/2.24, allocations: 1.421 MB / 0.8786 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/2.24, allocations: 0 / 0.8786 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/2.24, allocations: 39.67 kB / 0.8786 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/2.242, allocations: 464.1 kB / 0.879 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/2.242, allocations: 11.67 kB / 0.8791 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007786/2.242, allocations: 0.884 MB / 0.8799 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/2.243, allocations: 7.062 kB / 0.8799 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/2.244, allocations: 0.7251 MB / 0.8806 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/2.244, allocations: 151.1 kB / 0.8808 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/2.244, allocations: 11.38 kB / 0.8808 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/2.244, allocations: 15.61 kB / 0.8808 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/2.244, allocations: 38.62 kB / 0.8808 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/2.244, allocations: 15.67 kB / 0.8809 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000175/2.244, allocations: 219.6 kB / 0.8811 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.1e-07/2.244, allocations: 4 kB / 0.8811 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00323/2.248, allocations: 1.514 MB / 0.8825 GB, free: 2.77 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(6,33.3%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005223/2.253, allocations: 2.329 MB / 0.8848 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009188/2.254, allocations: 0.5762 MB / 0.8854 GB, free: 292 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/2.254, allocations: 0 / 0.8854 GB, free: 292 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004866/2.254, allocations: 343.7 kB / 0.8857 GB, free: 12 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007479/2.255, allocations: 134.2 kB / 0.8858 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/2.256, allocations: 1.154 MB / 0.887 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/2.257, allocations: 0.8557 MB / 0.8878 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001241/2.257, allocations: 31.28 kB / 0.8878 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.884e-05/2.257, allocations: 33.3 kB / 0.8879 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/2.257, allocations: 4 kB / 0.8879 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of Templates: time 0.05775/2.315, allocations: 50.14 MB / 0.9368 GB, free: 11.95 MB / 0.7794 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestRefP.pipe 2>&1) Environment - environmentSimulation: