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.7869/0.7869, allocations: 150.9 MB / 166 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002888/0.0002888, allocations: 19.97 kB / 204 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1362, allocations: 31.32 MB / 235.4 MB, free: 5.438 MB / 190.1 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.524/1.66, allocations: 292.6 MB / 0.5156 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04138/1.702, allocations: 37.55 MB / 0.5523 GB, free: 8.473 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/1.702, allocations: 3.938 kB / 0.5523 GB, free: 8.469 MB / 446.1 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.0003761/1.702, allocations: 76.55 kB / 0.5523 GB, free: 8.395 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002049/1.703, allocations: 87.38 kB / 0.5524 GB, free: 8.309 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02073/1.723, allocations: 7.16 MB / 0.5594 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000427/1.724, allocations: 306.5 kB / 0.5597 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/1.724, allocations: 105.1 kB / 0.5598 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002213/1.724, allocations: 123.4 kB / 0.5599 GB, free: 0.625 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/1.724, allocations: 95.52 kB / 0.56 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/1.724, allocations: 15.94 kB / 0.56 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0281/1.752, allocations: 17.73 MB / 0.5773 GB, free: 14.76 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.145e-05/1.753, allocations: 31.86 kB / 0.5774 GB, free: 14.73 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/1.753, allocations: 127.3 kB / 0.5775 GB, free: 14.6 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02027/1.773, allocations: 8.41 MB / 0.5857 GB, free: 6.172 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/1.773, allocations: 0 / 0.5857 GB, free: 6.172 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.112e-06/1.773, allocations: 0 / 0.5857 GB, free: 6.172 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/1.773, allocations: 0 / 0.5857 GB, free: 6.172 MB / 478.1 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.003621/1.777, allocations: 1.416 MB / 0.5871 GB, free: 4.707 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/1.777, allocations: 8.031 kB / 0.5871 GB, free: 4.699 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.174e-05/1.777, allocations: 35.56 kB / 0.5871 GB, free: 4.664 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002128/1.777, allocations: 238.5 kB / 0.5874 GB, free: 4.391 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/1.777, allocations: 12.44 kB / 0.5874 GB, free: 4.375 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/1.777, allocations: 20 kB / 0.5874 GB, free: 4.355 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003867/1.777, allocations: 283.7 kB / 0.5877 GB, free: 4.055 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/1.778, allocations: 4 kB / 0.5877 GB, free: 4.051 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/1.778, allocations: 12 kB / 0.5877 GB, free: 4.039 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/1.778, allocations: 11.98 kB / 0.5877 GB, free: 4.027 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/1.778, allocations: 160.9 kB / 0.5878 GB, free: 3.871 MB / 478.1 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.03536/1.813, allocations: 18 MB / 0.6054 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003691/1.814, allocations: 120.4 kB / 0.6055 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/1.814, allocations: 80.95 kB / 0.6056 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1472/1.961, allocations: 77.27 MB / 0.6811 GB, free: 9.75 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/1.961, allocations: 30.56 kB / 0.6811 GB, free: 9.711 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 2.305e-06/1.961, allocations: 4 kB / 0.6811 GB, free: 9.707 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.0008792/1.962, allocations: 408.2 kB / 0.6815 GB, free: 9.281 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/1.962, allocations: 51.41 kB / 0.6815 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/1.962, allocations: 211.7 kB / 0.6817 GB, free: 9.004 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/1.962, allocations: 33.69 kB / 0.6818 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.869e-05/1.962, allocations: 136.5 kB / 0.6819 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.809e-05/1.962, allocations: 106.4 kB / 0.682 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.198e-05/1.962, allocations: 53.61 kB / 0.6821 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000118/1.963, allocations: 338.7 kB / 0.6824 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/1.963, allocations: 76.3 kB / 0.6824 GB, free: 8.25 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/1.963, allocations: 114.2 kB / 0.6826 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/1.963, allocations: 201.5 kB / 0.6828 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/1.963, allocations: 0 / 0.6828 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004175/1.964, allocations: 277.9 kB / 0.683 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/1.964, allocations: 4 kB / 0.683 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/1.964, allocations: 0 / 0.683 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000856/1.964, allocations: 142.7 kB / 0.6832 GB, free: 7.488 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.789e-05/1.964, allocations: 8 kB / 0.6832 GB, free: 7.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005546/1.965, allocations: 0.6224 MB / 0.6838 GB, free: 6.832 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/1.965, allocations: 23.59 kB / 0.6838 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/1.965, allocations: 8.562 kB / 0.6838 GB, free: 6.801 MB / 0.5762 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.000127/1.965, allocations: 130.1 kB / 0.6839 GB, free: 6.664 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.999e-05/1.965, allocations: 23.66 kB / 0.6839 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000669/1.966, allocations: 0.5642 MB / 0.6845 GB, free: 6.004 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003298/1.966, allocations: 201.7 kB / 0.6847 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/1.966, allocations: 3.938 kB / 0.6847 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/1.966, allocations: 7.984 kB / 0.6847 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007742/1.967, allocations: 0.6731 MB / 0.6854 GB, free: 5.059 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/1.967, allocations: 4 kB / 0.6854 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.495e-05/1.967, allocations: 23.86 kB / 0.6854 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004588/1.968, allocations: 121.8 kB / 0.6855 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/1.968, allocations: 0 / 0.6855 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004534/1.968, allocations: 0.6319 MB / 0.6861 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.968, allocations: 64 / 0.6861 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003117/1.969, allocations: 311.8 kB / 0.6864 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/1.969, allocations: 104.8 kB / 0.6865 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.343e-05/1.969, allocations: 15.83 kB / 0.6865 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/1.969, allocations: 4 kB / 0.6865 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-05/1.969, allocations: 7.984 kB / 0.6865 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/1.969, allocations: 4.062 kB / 0.6865 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002299/1.969, allocations: 237.9 kB / 0.6868 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.969, allocations: 0 / 0.6868 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002886/1.972, allocations: 1.187 MB / 0.6879 GB, free: 2.359 MB / 0.5762 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.006015/1.978, allocations: 1.794 MB / 0.6897 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005223/1.979, allocations: 221.6 kB / 0.6899 GB, free: 368 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.979, allocations: 0 / 0.6899 GB, free: 368 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002225/1.979, allocations: 87.89 kB / 0.69 GB, free: 280 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007385/1.98, allocations: 120.3 kB / 0.6901 GB, free: 164 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1449/2.124, allocations: 0.5651 MB / 0.6906 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/2.125, allocations: 0.7655 MB / 0.6914 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001441/2.125, allocations: 22.02 kB / 0.6914 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.102e-05/2.125, allocations: 18.44 kB / 0.6914 GB, free: 225 MB / 0.5762 GB Notification: Performance of SimCode: time 1.122e-06/2.125, allocations: 0 / 0.6914 GB, free: 225 MB / 0.5762 GB Notification: Performance of Templates: time 0.04558/2.171, allocations: 42.22 MB / 0.7327 GB, free: 206.9 MB / 0.5762 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)