Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.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.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7709/0.7709, allocations: 150.8 MB / 166.6 MB, free: 11.16 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002459/0.0002459, allocations: 15.98 kB / 204.7 MB, free: 6.148 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.14, allocations: 31.33 MB / 236 MB, free: 3.871 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.SimpleExamples.TestInvSingularPressureLoss): time 1.524/1.664, allocations: 292 MB / 0.5156 GB, free: 9.984 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4358/2.1, allocations: 188.3 MB / 0.6996 GB, free: 2.727 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002036/2.1, allocations: 7.141 kB / 0.6996 GB, free: 2.727 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75: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/InvSingularPressureLoss.mo:30:3-31: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/InvSingularPressureLoss.mo:32:3-33:65: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.0001074/2.101, allocations: 29.09 kB / 0.6996 GB, free: 2.727 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002268/2.101, allocations: 102.8 kB / 0.6997 GB, free: 2.723 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0222/2.123, allocations: 8.64 MB / 0.7081 GB, free: 2.473 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0003741/2.123, allocations: 369.3 kB / 0.7085 GB, free: 2.473 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/2.124, allocations: 183.9 kB / 0.7087 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/2.124, allocations: 144.9 kB / 0.7088 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/2.124, allocations: 159.9 kB / 0.709 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 3.252e-05/2.124, allocations: 27.97 kB / 0.709 GB, free: 2.441 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02876/2.153, allocations: 19.92 MB / 0.7284 GB, free: 1.02 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.591e-05/2.153, allocations: 66.34 kB / 0.7285 GB, free: 1.008 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002152/2.153, allocations: 172.3 kB / 0.7287 GB, free: 1 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.02052/2.174, allocations: 9.88 MB / 0.7383 GB, free: 13.47 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/2.174, allocations: 3.188 kB / 0.7383 GB, free: 13.47 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.273e-06/2.174, allocations: 4 kB / 0.7383 GB, free: 13.47 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.204e-05/2.174, allocations: 0 / 0.7383 GB, free: 13.47 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.00428/2.178, allocations: 1.741 MB / 0.74 GB, free: 12.34 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/2.178, allocations: 10.16 kB / 0.74 GB, free: 12.34 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.757e-05/2.178, allocations: 44.28 kB / 0.7401 GB, free: 12.32 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/2.178, allocations: 285.5 kB / 0.7403 GB, free: 12.07 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.225e-05/2.179, allocations: 27.56 kB / 0.7404 GB, free: 12.07 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/2.179, allocations: 31.56 kB / 0.7404 GB, free: 12.07 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005298/2.179, allocations: 362 kB / 0.7407 GB, free: 11.92 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/2.179, allocations: 0 / 0.7407 GB, free: 11.92 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.469e-05/2.179, allocations: 15.62 kB / 0.7408 GB, free: 11.92 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/2.179, allocations: 8.656 kB / 0.7408 GB, free: 11.92 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/2.18, allocations: 232.3 kB / 0.741 GB, free: 11.89 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07654/2.256, allocations: 31.91 MB / 0.7722 GB, free: 13.68 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002355/2.256, allocations: 69.92 kB / 0.7722 GB, free: 13.61 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.53e-05/2.257, allocations: 26.39 kB / 0.7722 GB, free: 13.59 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2414/2.498, allocations: 118.3 MB / 0.8877 GB, free: 11.65 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/2.498, allocations: 34.5 kB / 0.8878 GB, free: 11.61 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=5): time 2.515e-06/2.498, allocations: 0 / 0.8878 GB, free: 11.61 MB / 0.7292 GB Notification: Performance of matching and sorting (n=5): time 0.0004081/2.498, allocations: 120.3 kB / 0.8879 GB, free: 11.49 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/2.498, allocations: 55.34 kB / 0.8879 GB, free: 11.42 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003334/2.499, allocations: 303.2 kB / 0.8882 GB, free: 11.12 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/2.499, allocations: 25.7 kB / 0.8883 GB, free: 11.09 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/2.499, allocations: 231.3 kB / 0.8885 GB, free: 10.86 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/2.499, allocations: 23.73 kB / 0.8885 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.711e-05/2.499, allocations: 53.61 kB / 0.8886 GB, free: 10.78 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.81e-05/2.499, allocations: 334.8 kB / 0.8889 GB, free: 10.45 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/2.499, allocations: 43.97 kB / 0.8889 GB, free: 10.4 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/2.5, allocations: 149.5 kB / 0.8891 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/2.5, allocations: 190.9 kB / 0.8892 GB, free: 9.988 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/2.5, allocations: 0 / 0.8892 GB, free: 9.988 MB / 0.7292 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004062/2.5, allocations: 217.4 kB / 0.8894 GB, free: 9.793 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/2.5, allocations: 13.16 kB / 0.8895 GB, free: 9.781 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/2.5, allocations: 4 kB / 0.8895 GB, free: 9.777 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/2.5, allocations: 4 kB / 0.8895 GB, free: 9.773 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006914/2.501, allocations: 125.7 kB / 0.8896 GB, free: 9.656 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/2.501, allocations: 8 kB / 0.8896 GB, free: 9.648 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/2.501, allocations: 43.58 kB / 0.8896 GB, free: 9.605 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/2.501, allocations: 8.25 kB / 0.8896 GB, free: 9.598 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001203/2.501, allocations: 146.2 kB / 0.8898 GB, free: 9.449 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.614e-05/2.501, allocations: 26.62 kB / 0.8898 GB, free: 9.426 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002785/2.502, allocations: 115.9 kB / 0.8899 GB, free: 9.301 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/2.502, allocations: 5.141 kB / 0.8899 GB, free: 9.297 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/2.502, allocations: 96 / 0.8899 GB, free: 9.297 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/2.502, allocations: 3.938 kB / 0.8899 GB, free: 9.293 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3816/2.883, allocations: 114.5 MB / 1.002 GB, free: 409.8 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/2.883, allocations: 7 kB / 1.002 GB, free: 409.8 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.453e-05/2.883, allocations: 11.25 kB / 1.002 GB, free: 409.8 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/2.883, allocations: 3.375 kB / 1.002 GB, free: 409.8 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/2.883, allocations: 3.906 kB / 1.002 GB, free: 409.8 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/2.883, allocations: 0 / 1.002 GB, free: 409.8 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/2.883, allocations: 3.969 kB / 1.002 GB, free: 409.8 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006683/2.884, allocations: 0.8398 MB / 1.003 GB, free: 409.2 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 7.436e-05/2.884, allocations: 108.8 kB / 1.003 GB, free: 409.1 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.38e-05/2.884, allocations: 4.953 kB / 1.003 GB, free: 409.1 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/2.884, allocations: 11.58 kB / 1.003 GB, free: 409.1 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.055e-05/2.884, allocations: 3.938 kB / 1.003 GB, free: 409.1 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/2.884, allocations: 6.875 kB / 1.003 GB, free: 409.1 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0001793/2.885, allocations: 223.4 kB / 1.003 GB, free: 409 MB / 0.7917 GB Notification: Performance of sort global known variables: time 1.51e-07/2.885, allocations: 0 / 1.003 GB, free: 409 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.003005/2.888, allocations: 1.491 MB / 1.004 GB, free: 409 MB / 0.7917 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005277/2.893, allocations: 2.275 MB / 1.007 GB, free: 408.5 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.0003776/2.893, allocations: 112.7 kB / 1.007 GB, free: 408.5 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/2.893, allocations: 0 / 1.007 GB, free: 408.5 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 9.466e-05/2.893, allocations: 36.25 kB / 1.007 GB, free: 408.5 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/2.894, allocations: 66.86 kB / 1.007 GB, free: 408.5 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00066/2.894, allocations: 0.6466 MB / 1.007 GB, free: 408 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001511/2.895, allocations: 0.7603 MB / 1.008 GB, free: 407.3 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0001639/2.895, allocations: 43.69 kB / 1.008 GB, free: 407.2 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.409e-05/2.895, allocations: 27.47 kB / 1.008 GB, free: 407.2 MB / 0.7917 GB Notification: Performance of SimCode: time 2.5e-07/2.895, allocations: 4 kB / 1.008 GB, free: 407.2 MB / 0.7917 GB Notification: Performance of Templates: time 0.04342/2.938, allocations: 45.38 MB / 1.053 GB, free: 364.9 MB / 0.7917 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)