Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8172/0.8172, allocations: 150.8 MB / 166.6 MB, free: 11.17 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002437, allocations: 15.98 kB / 204.7 MB, free: 6.172 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1475, 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.Examples.SimpleExamples.TestSingularPressureLoss): time 1.608/1.756, allocations: 291.9 MB / 0.5156 GB, free: 10.09 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04087/1.796, allocations: 37.54 MB / 0.5522 GB, free: 4.688 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/1.797, allocations: 7.938 kB / 0.5522 GB, free: 4.68 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/SingularPressureLoss.mo:25:3-27:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/SingularPressureLoss.mo:28:3-29:52:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003488/1.797, allocations: 75.62 kB / 0.5523 GB, free: 4.605 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/1.797, allocations: 79.36 kB / 0.5524 GB, free: 4.527 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01816/1.815, allocations: 7.153 MB / 0.5594 GB, free: 13.38 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004018/1.816, allocations: 318.5 kB / 0.5597 GB, free: 13.06 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/1.816, allocations: 107.5 kB / 0.5598 GB, free: 12.96 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/1.816, allocations: 123.4 kB / 0.5599 GB, free: 12.84 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/1.816, allocations: 95.52 kB / 0.56 GB, free: 12.75 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/1.816, allocations: 15.94 kB / 0.56 GB, free: 12.73 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02787/1.844, allocations: 17.73 MB / 0.5773 GB, free: 10.98 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 6.937e-05/1.844, allocations: 35.86 kB / 0.5773 GB, free: 10.94 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/1.844, allocations: 115.4 kB / 0.5775 GB, free: 10.83 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01646/1.861, allocations: 8.422 MB / 0.5857 GB, free: 2.387 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/1.861, allocations: 0 / 0.5857 GB, free: 2.387 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.413e-06/1.861, allocations: 4 kB / 0.5857 GB, free: 2.383 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.032e-05/1.861, allocations: 0 / 0.5857 GB, free: 2.383 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.003272/1.864, allocations: 1.416 MB / 0.5871 GB, free: 0.9141 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/1.864, allocations: 8.031 kB / 0.5871 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.456e-05/1.864, allocations: 31.56 kB / 0.5871 GB, free: 0.875 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/1.865, allocations: 230.5 kB / 0.5873 GB, free: 0.6094 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.568e-05/1.865, allocations: 16.44 kB / 0.5873 GB, free: 0.5938 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.33e-05/1.865, allocations: 16 kB / 0.5874 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000392/1.865, allocations: 290.8 kB / 0.5876 GB, free: 276 kB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/1.865, allocations: 0 / 0.5876 GB, free: 276 kB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/1.865, allocations: 11.94 kB / 0.5876 GB, free: 264 kB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/1.865, allocations: 15.98 kB / 0.5877 GB, free: 248 kB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002245/1.865, allocations: 161 kB / 0.5878 GB, free: 88 kB / 474.7 MB 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.03743/1.903, allocations: 18 MB / 0.6054 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/1.903, allocations: 118.5 kB / 0.6055 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.042e-05/1.903, allocations: 76.97 kB / 0.6056 GB, free: 12 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1571/2.06, allocations: 77.28 MB / 0.681 GB, free: 5.953 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/2.06, allocations: 30.56 kB / 0.6811 GB, free: 5.914 MB / 0.573 GB Notification: Performance of pre-optimization done (n=32): time 3.326e-06/2.06, allocations: 0 / 0.6811 GB, free: 5.914 MB / 0.573 GB Notification: Performance of matching and sorting (n=32): time 0.0009843/2.061, allocations: 404.2 kB / 0.6815 GB, free: 5.492 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/2.061, allocations: 59.41 kB / 0.6815 GB, free: 5.422 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/2.062, allocations: 211.7 kB / 0.6817 GB, free: 5.207 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/2.062, allocations: 29.7 kB / 0.6817 GB, free: 5.172 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 9.28e-05/2.062, allocations: 140.5 kB / 0.6819 GB, free: 5.031 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 8.456e-05/2.062, allocations: 102.5 kB / 0.682 GB, free: 4.93 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.483e-05/2.062, allocations: 49.59 kB / 0.682 GB, free: 4.875 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001388/2.062, allocations: 338.8 kB / 0.6823 GB, free: 4.535 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.522e-05/2.062, allocations: 64.3 kB / 0.6824 GB, free: 4.473 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/2.062, allocations: 118.3 kB / 0.6825 GB, free: 4.344 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002389/2.063, allocations: 197.5 kB / 0.6827 GB, free: 4.137 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/2.063, allocations: 4 kB / 0.6827 GB, free: 4.133 MB / 0.573 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004054/2.063, allocations: 277.9 kB / 0.683 GB, free: 3.852 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/2.063, allocations: 8 kB / 0.683 GB, free: 3.844 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/2.063, allocations: 0 / 0.683 GB, free: 3.844 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008192/2.064, allocations: 140.8 kB / 0.6831 GB, free: 3.703 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.783e-05/2.064, allocations: 11.98 kB / 0.6831 GB, free: 3.691 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005041/2.064, allocations: 0.617 MB / 0.6837 GB, free: 3.051 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/2.065, allocations: 23.59 kB / 0.6838 GB, free: 3.027 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/2.065, allocations: 12.06 kB / 0.6838 GB, free: 3.016 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (singularPressureLoss.C2.b,singularPressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001223/2.065, allocations: 134.1 kB / 0.6839 GB, free: 2.875 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.403e-05/2.065, allocations: 23.75 kB / 0.6839 GB, free: 2.852 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006716/2.065, allocations: 0.569 MB / 0.6845 GB, free: 2.211 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003105/2.066, allocations: 207 kB / 0.6847 GB, free: 2.004 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/2.066, allocations: 0 / 0.6847 GB, free: 2.004 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/2.066, allocations: 4 kB / 0.6847 GB, free: 2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007566/2.067, allocations: 0.682 MB / 0.6853 GB, free: 1.258 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/2.067, allocations: 0 / 0.6853 GB, free: 1.258 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.043e-05/2.067, allocations: 23.88 kB / 0.6854 GB, free: 1.234 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000442/2.067, allocations: 120.7 kB / 0.6855 GB, free: 1.113 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/2.067, allocations: 8 kB / 0.6855 GB, free: 1.105 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004415/2.068, allocations: 0.6265 MB / 0.6861 GB, free: 464 kB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/2.068, allocations: 0 / 0.6861 GB, free: 464 kB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1596/2.227, allocations: 0.9967 MB / 0.6871 GB, free: 222.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/2.227, allocations: 103.9 kB / 0.6872 GB, free: 222.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/2.227, allocations: 8.828 kB / 0.6872 GB, free: 222.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/2.228, allocations: 9.406 kB / 0.6872 GB, free: 222.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.215e-05/2.228, allocations: 6.625 kB / 0.6872 GB, free: 222.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/2.228, allocations: 3.906 kB / 0.6872 GB, free: 222.1 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002515/2.228, allocations: 238.5 kB / 0.6874 GB, free: 222 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.71e-07/2.228, allocations: 0 / 0.6874 GB, free: 222 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.002759/2.231, allocations: 1.224 MB / 0.6886 GB, free: 222 MB / 0.573 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 (11): * Single equations (assignments): 10 * 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.004462/2.235, allocations: 1.783 MB / 0.6904 GB, free: 221.9 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0005103/2.236, allocations: 227.9 kB / 0.6906 GB, free: 221.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/2.236, allocations: 1.094 kB / 0.6906 GB, free: 221.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002159/2.236, allocations: 84.75 kB / 0.6907 GB, free: 221.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007507/2.237, allocations: 119.4 kB / 0.6908 GB, free: 221.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000821/2.238, allocations: 0.7377 MB / 0.6915 GB, free: 221.4 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/2.238, allocations: 0.7712 MB / 0.6922 GB, free: 220.7 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 9.709e-05/2.238, allocations: 24.5 kB / 0.6923 GB, free: 220.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.747e-05/2.238, allocations: 19.91 kB / 0.6923 GB, free: 220.7 MB / 0.573 GB Notification: Performance of SimCode: time 2.4e-07/2.238, allocations: 0 / 0.6923 GB, free: 220.7 MB / 0.573 GB Notification: Performance of Templates: time 0.04405/2.282, allocations: 42.4 MB / 0.7337 GB, free: 200.1 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)