Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7963/0.7963, allocations: 150.9 MB / 166 MB, free: 14.57 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002879/0.0002879, allocations: 11.98 kB / 204.1 MB, free: 9.996 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.139, allocations: 31.34 MB / 235.4 MB, free: 5.414 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.TestInvSingularPressureLoss): time 1.601/1.74, allocations: 293.4 MB / 0.5165 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04349/1.783, allocations: 37.5 MB / 0.5531 GB, free: 8.551 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002224/1.784, allocations: 8 kB / 0.5531 GB, free: 8.543 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52: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/InvSingularPressureLoss.mo:26:3-28: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/InvSingularPressureLoss.mo:29:3-30:83: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.0003766/1.784, allocations: 71.58 kB / 0.5532 GB, free: 8.473 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/1.784, allocations: 71.44 kB / 0.5532 GB, free: 8.402 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02159/1.806, allocations: 7.165 MB / 0.5602 GB, free: 1.234 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004559/1.806, allocations: 254.8 kB / 0.5605 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/1.806, allocations: 104 kB / 0.5606 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/1.807, allocations: 99.53 kB / 0.5607 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/1.807, allocations: 107.4 kB / 0.5608 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/1.807, allocations: 8 kB / 0.5608 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02968/1.837, allocations: 17.72 MB / 0.5781 GB, free: 14.93 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.905e-05/1.837, allocations: 39.83 kB / 0.5781 GB, free: 14.89 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/1.837, allocations: 107.4 kB / 0.5782 GB, free: 14.78 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0208/1.858, allocations: 8.39 MB / 0.5864 GB, free: 6.371 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/1.858, allocations: 0 / 0.5864 GB, free: 6.371 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.252e-06/1.858, allocations: 0 / 0.5864 GB, free: 6.371 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.14e-05/1.858, allocations: 0 / 0.5864 GB, free: 6.371 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.003868/1.862, allocations: 1.404 MB / 0.5878 GB, free: 4.914 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/1.862, allocations: 8.031 kB / 0.5878 GB, free: 4.906 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.099e-05/1.862, allocations: 54.55 kB / 0.5879 GB, free: 4.844 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.29e-05/1.862, allocations: 31.66 kB / 0.5879 GB, free: 4.812 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/1.862, allocations: 211.7 kB / 0.5881 GB, free: 4.566 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.416e-05/1.862, allocations: 16.38 kB / 0.5881 GB, free: 4.551 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/1.862, allocations: 16 kB / 0.5881 GB, free: 4.535 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004669/1.863, allocations: 264.1 kB / 0.5884 GB, free: 4.258 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/1.863, allocations: 0 / 0.5884 GB, free: 4.258 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/1.863, allocations: 8 kB / 0.5884 GB, free: 4.25 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/1.863, allocations: 15.94 kB / 0.5884 GB, free: 4.234 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/1.863, allocations: 147.2 kB / 0.5885 GB, free: 4.094 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.01961/1.883, allocations: 9.49 MB / 0.5978 GB, free: 9.629 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/1.883, allocations: 82.55 kB / 0.5979 GB, free: 9.539 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/1.883, allocations: 56.83 kB / 0.5979 GB, free: 9.48 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1465/2.029, allocations: 77.27 MB / 0.6734 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/2.03, allocations: 34.56 kB / 0.6734 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 1.804e-06/2.03, allocations: 0 / 0.6734 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0005284/2.03, allocations: 203.4 kB / 0.6736 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/2.03, allocations: 51.41 kB / 0.6737 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/2.03, allocations: 224.8 kB / 0.6739 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/2.03, allocations: 29.64 kB / 0.6739 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.354e-05/2.03, allocations: 152.2 kB / 0.6741 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.72e-05/2.031, allocations: 74.84 kB / 0.6741 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.234e-05/2.031, allocations: 37.64 kB / 0.6742 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001055/2.031, allocations: 330.8 kB / 0.6745 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/2.031, allocations: 51.97 kB / 0.6745 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/2.031, allocations: 93.27 kB / 0.6746 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/2.031, allocations: 159.6 kB / 0.6748 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/2.031, allocations: 0 / 0.6748 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003291/2.032, allocations: 193.3 kB / 0.675 GB, free: 1.738 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/2.032, allocations: 4 kB / 0.675 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/2.032, allocations: 4 kB / 0.675 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/2.032, allocations: 0 / 0.675 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006794/2.032, allocations: 100 kB / 0.6751 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/2.032, allocations: 0 / 0.6751 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/2.032, allocations: 35.58 kB / 0.6751 GB, free: 1.598 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/2.033, allocations: 4 kB / 0.6751 GB, free: 1.594 MB / 0.5606 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 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.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): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001123/2.033, allocations: 141.7 kB / 0.6752 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.372e-05/2.033, allocations: 19.72 kB / 0.6753 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004401/2.033, allocations: 330 kB / 0.6756 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002387/2.033, allocations: 153.6 kB / 0.6757 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/2.033, allocations: 3.938 kB / 0.6757 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/2.033, allocations: 0 / 0.6757 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007806/2.034, allocations: 0.609 MB / 0.6763 GB, free: 248 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/2.034, allocations: 0 / 0.6763 GB, free: 248 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/2.035, allocations: 95.91 kB / 0.6764 GB, free: 152 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/2.035, allocations: 4 kB / 0.6764 GB, free: 148 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/2.035, allocations: 4 kB / 0.6764 GB, free: 144 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/2.035, allocations: 0 / 0.6764 GB, free: 144 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/2.035, allocations: 0 / 0.6764 GB, free: 144 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003898/2.035, allocations: 294.5 kB / 0.6767 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.22e-05/2.035, allocations: 108.8 kB / 0.6768 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/2.035, allocations: 8 kB / 0.6768 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/2.035, allocations: 7.938 kB / 0.6768 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.031e-05/2.035, allocations: 12.83 kB / 0.6768 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-06/2.035, allocations: 0 / 0.6768 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001802/2.036, allocations: 210 kB / 0.677 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.41e-07/2.036, allocations: 0 / 0.677 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002845/2.039, allocations: 1.171 MB / 0.6782 GB, free: 14.31 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.005187/2.044, allocations: 2.515 MB / 0.6806 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004195/2.044, allocations: 181.5 kB / 0.6808 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/2.044, allocations: 0 / 0.6808 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001545/2.044, allocations: 84.2 kB / 0.6809 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006449/2.045, allocations: 93.7 kB / 0.681 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/2.049, allocations: 2.871 MB / 0.6838 GB, free: 8.449 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/2.049, allocations: 0.7519 MB / 0.6845 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001162/2.049, allocations: 33.92 kB / 0.6845 GB, free: 7.641 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/2.049, allocations: 83.41 kB / 0.6846 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of SimCode: time 4.41e-07/2.049, allocations: 0 / 0.6846 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2322/2.281, allocations: 46.05 MB / 0.7296 GB, free: 208 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001556/2.282, allocations: 226.8 kB / 0.7298 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.063/6.345, allocations: 0 / 0.7298 GB, free: 207.8 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)