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.8047/0.8047, allocations: 150.9 MB / 166 MB, free: 14.57 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003007/0.0003007, allocations: 19.97 kB / 204 MB, free: 10.08 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1649, allocations: 31.33 MB / 235.4 MB, free: 5.461 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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.531/1.696, allocations: 292.7 MB / 0.5157 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1936/1.89, allocations: 188.3 MB / 0.6996 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002719/1.89, allocations: 15.94 kB / 0.6996 GB, free: 0.8555 MB / 0.5762 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.0001448/1.89, allocations: 29.17 kB / 0.6996 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000352/1.891, allocations: 99.16 kB / 0.6997 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3055/2.196, allocations: 8.627 MB / 0.7082 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004905/2.197, allocations: 368.3 kB / 0.7085 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/2.197, allocations: 188.1 kB / 0.7087 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003408/2.197, allocations: 142.9 kB / 0.7088 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002635/2.198, allocations: 162.2 kB / 0.709 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.55e-05/2.198, allocations: 25.03 kB / 0.709 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03377/2.231, allocations: 19.91 MB / 0.7285 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001282/2.232, allocations: 68.3 kB / 0.7285 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002815/2.232, allocations: 171.1 kB / 0.7287 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02416/2.256, allocations: 9.861 MB / 0.7383 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/2.256, allocations: 0 / 0.7383 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.783e-06/2.256, allocations: 9.469 kB / 0.7383 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.135e-06/2.256, allocations: 0 / 0.7383 GB, free: 1.961 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004936/2.261, allocations: 1.742 MB / 0.74 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/2.261, allocations: 8.812 kB / 0.74 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.998e-05/2.261, allocations: 41.22 kB / 0.7401 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/2.261, allocations: 290.1 kB / 0.7403 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.621e-05/2.261, allocations: 32.75 kB / 0.7404 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.186e-05/2.262, allocations: 34.12 kB / 0.7404 GB, free: 0.5547 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005179/2.262, allocations: 356.3 kB / 0.7408 GB, free: 424 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/2.262, allocations: 1.094 kB / 0.7408 GB, free: 424 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/2.262, allocations: 13.56 kB / 0.7408 GB, free: 424 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/2.262, allocations: 14.19 kB / 0.7408 GB, free: 420 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004299/2.263, allocations: 237 kB / 0.741 GB, free: 384 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0676/2.33, allocations: 31.9 MB / 0.7722 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/2.33, allocations: 64.3 kB / 0.7722 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.046e-05/2.331, allocations: 31.73 kB / 0.7723 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2178/2.548, allocations: 118.3 MB / 0.8877 GB, free: 6.855 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/2.548, allocations: 38 kB / 0.8878 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=5): time 2.154e-06/2.548, allocations: 0 / 0.8878 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.0004864/2.549, allocations: 114.2 kB / 0.8879 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/2.549, allocations: 55.41 kB / 0.8879 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003303/2.549, allocations: 306.5 kB / 0.8882 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/2.549, allocations: 25.7 kB / 0.8883 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/2.549, allocations: 236 kB / 0.8885 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/2.55, allocations: 24.28 kB / 0.8885 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.359e-05/2.55, allocations: 47.7 kB / 0.8886 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001047/2.55, allocations: 333.4 kB / 0.8889 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/2.55, allocations: 38.3 kB / 0.8889 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/2.55, allocations: 150.3 kB / 0.889 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/2.55, allocations: 198.7 kB / 0.8892 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/2.55, allocations: 0 / 0.8892 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004227/2.551, allocations: 223.8 kB / 0.8895 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/2.551, allocations: 8 kB / 0.8895 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/2.551, allocations: 4 kB / 0.8895 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/2.551, allocations: 8.406 kB / 0.8895 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006711/2.551, allocations: 118.4 kB / 0.8896 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/2.552, allocations: 10.89 kB / 0.8896 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/2.552, allocations: 34.72 kB / 0.8896 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/2.552, allocations: 17.17 kB / 0.8896 GB, free: 5.051 MB / 0.7325 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.0001345/2.552, allocations: 147.8 kB / 0.8898 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.873e-05/2.552, allocations: 27.7 kB / 0.8898 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002835/2.552, allocations: 120.4 kB / 0.8899 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/2.552, allocations: 0 / 0.8899 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/2.552, allocations: 256 / 0.8899 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/2.552, allocations: 0 / 0.8899 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3659/2.918, allocations: 114.5 MB / 1.002 GB, free: 460.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/2.918, allocations: 4.125 kB / 1.002 GB, free: 460.7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.132e-05/2.918, allocations: 13.75 kB / 1.002 GB, free: 460.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/2.918, allocations: 6.062 kB / 1.002 GB, free: 460.7 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/2.918, allocations: 1.453 kB / 1.002 GB, free: 460.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/2.918, allocations: 3.812 kB / 1.002 GB, free: 460.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/2.918, allocations: 0 / 1.002 GB, free: 460.7 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002545/2.919, allocations: 150.3 kB / 1.002 GB, free: 460.6 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.034e-05/2.919, allocations: 113.3 kB / 1.002 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.856e-05/2.919, allocations: 0 / 1.002 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/2.919, allocations: 7.375 kB / 1.002 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.858e-05/2.919, allocations: 13.58 kB / 1.002 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/2.919, allocations: 2.688 kB / 1.002 GB, free: 460.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001804/2.919, allocations: 225.8 kB / 1.002 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/2.919, allocations: 0 / 1.002 GB, free: 460.4 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003287/2.922, allocations: 1.435 MB / 1.004 GB, free: 460.4 MB / 0.8262 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.005678/2.928, allocations: 2.279 MB / 1.006 GB, free: 460.1 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003864/2.929, allocations: 114 kB / 1.006 GB, free: 460.1 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/2.929, allocations: 0.9375 kB / 1.006 GB, free: 460.1 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.794e-05/2.929, allocations: 26.86 kB / 1.006 GB, free: 460.1 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000415/2.929, allocations: 68.58 kB / 1.006 GB, free: 460.1 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006767/2.93, allocations: 0.5486 MB / 1.007 GB, free: 459.8 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001639/2.93, allocations: 0.759 MB / 1.007 GB, free: 459.1 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001654/2.93, allocations: 50.33 kB / 1.007 GB, free: 459 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.067e-05/2.93, allocations: 25.72 kB / 1.007 GB, free: 459 MB / 0.8262 GB Notification: Performance of SimCode: time 8.31e-07/2.93, allocations: 0 / 1.007 GB, free: 459 MB / 0.8262 GB Notification: Performance of Templates: time 0.04559/2.976, allocations: 45.32 MB / 1.052 GB, free: 429.6 MB / 0.8262 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)