Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.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.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",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.8156/0.8156, allocations: 150.9 MB / 166 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002991, allocations: 11.98 kB / 204.1 MB, free: 10.03 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.138, allocations: 31.33 MB / 235.4 MB, free: 5.445 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.TestControlValve): time 1.52/1.658, allocations: 293.7 MB / 0.5167 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04158/1.7, allocations: 37.92 MB / 0.5537 GB, free: 7.863 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002483/1.7, allocations: 4 kB / 0.5537 GB, free: 7.859 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/ControlValve.mo:45:3-47:43: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/ControlValve.mo:48:3-50:38: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.0004629/1.701, allocations: 132 kB / 0.5539 GB, free: 7.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002481/1.701, allocations: 139.3 kB / 0.554 GB, free: 7.594 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01964/1.72, allocations: 7.268 MB / 0.5611 GB, free: 328 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005424/1.721, allocations: 362.5 kB / 0.5615 GB, free: 15.96 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/1.721, allocations: 134.3 kB / 0.5616 GB, free: 15.84 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/1.721, allocations: 143.3 kB / 0.5617 GB, free: 15.7 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001709/1.722, allocations: 163.4 kB / 0.5619 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.415e-05/1.722, allocations: 16 kB / 0.5619 GB, free: 15.52 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0263/1.748, allocations: 17.8 MB / 0.5793 GB, free: 13.69 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/1.748, allocations: 71.7 kB / 0.5793 GB, free: 13.62 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000195/1.748, allocations: 155 kB / 0.5795 GB, free: 13.47 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01665/1.765, allocations: 8.531 MB / 0.5878 GB, free: 4.918 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/1.765, allocations: 0 / 0.5878 GB, free: 4.918 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.122e-06/1.765, allocations: 0 / 0.5878 GB, free: 4.918 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/1.765, allocations: 0 / 0.5878 GB, free: 4.918 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.003768/1.769, allocations: 1.528 MB / 0.5893 GB, free: 3.34 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/1.769, allocations: 8.031 kB / 0.5893 GB, free: 3.332 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.912e-05/1.769, allocations: 62.53 kB / 0.5894 GB, free: 3.262 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.892e-05/1.769, allocations: 47.38 kB / 0.5894 GB, free: 3.215 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/1.769, allocations: 290.1 kB / 0.5897 GB, free: 2.895 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/1.769, allocations: 16.44 kB / 0.5897 GB, free: 2.875 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/1.769, allocations: 23.94 kB / 0.5897 GB, free: 2.852 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004178/1.77, allocations: 319.4 kB / 0.59 GB, free: 2.516 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/1.77, allocations: 3.938 kB / 0.59 GB, free: 2.512 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/1.77, allocations: 8 kB / 0.5901 GB, free: 2.504 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/1.77, allocations: 15.92 kB / 0.5901 GB, free: 2.488 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/1.77, allocations: 206.9 kB / 0.5903 GB, free: 2.289 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.03438/1.805, allocations: 18.12 MB / 0.608 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/1.805, allocations: 138.5 kB / 0.6081 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/1.805, allocations: 108.8 kB / 0.6082 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1399/1.945, allocations: 77.28 MB / 0.6837 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/1.945, allocations: 34.56 kB / 0.6837 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.034e-06/1.945, allocations: 0 / 0.6837 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001192/1.946, allocations: 0.4914 MB / 0.6842 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/1.946, allocations: 63.34 kB / 0.6842 GB, free: 7.352 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003957/1.947, allocations: 348.5 kB / 0.6846 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/1.947, allocations: 25.7 kB / 0.6846 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/1.947, allocations: 192.4 kB / 0.6848 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.66e-05/1.947, allocations: 102.4 kB / 0.6849 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.643e-05/1.947, allocations: 53.59 kB / 0.6849 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001151/1.947, allocations: 346.8 kB / 0.6853 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/1.947, allocations: 95.97 kB / 0.6854 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/1.947, allocations: 137.3 kB / 0.6855 GB, free: 6.031 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/1.948, allocations: 244.5 kB / 0.6857 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/1.948, allocations: 4 kB / 0.6857 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004846/1.948, allocations: 345.5 kB / 0.6861 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/1.948, allocations: 8 kB / 0.6861 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/1.948, allocations: 0 / 0.6861 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008349/1.949, allocations: 144.8 kB / 0.6862 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.789e-05/1.949, allocations: 15.94 kB / 0.6862 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005099/1.95, allocations: 0.6108 MB / 0.6868 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/1.95, allocations: 31.62 kB / 0.6868 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/1.95, allocations: 4 kB / 0.6868 GB, free: 4.586 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 (ControlValve.C2.b,ControlValve.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 (13): * Single equations (assignments): 10 * 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.0001457/1.95, allocations: 170.7 kB / 0.687 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.645e-05/1.95, allocations: 35.61 kB / 0.687 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007837/1.951, allocations: 0.6548 MB / 0.6877 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004156/1.951, allocations: 256.5 kB / 0.6879 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/1.951, allocations: 0 / 0.6879 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/1.951, allocations: 4 kB / 0.6879 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/1.952, allocations: 0.8341 MB / 0.6887 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/1.952, allocations: 4 kB / 0.6887 GB, free: 2.484 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.044e-05/1.952, allocations: 16 kB / 0.6888 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004923/1.953, allocations: 118.6 kB / 0.6889 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/1.953, allocations: 0 / 0.6889 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004655/1.953, allocations: 0.6421 MB / 0.6895 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/1.953, allocations: 7.938 kB / 0.6895 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004952/1.954, allocations: 377.8 kB / 0.6899 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.607e-05/1.954, allocations: 124.6 kB / 0.69 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/1.954, allocations: 19.84 kB / 0.69 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/1.954, allocations: 7.938 kB / 0.69 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/1.954, allocations: 7.984 kB / 0.69 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/1.954, allocations: 8 kB / 0.69 GB, free: 1.105 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003215/1.954, allocations: 331.1 kB / 0.6903 GB, free: 0.7852 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/1.954, allocations: 0 / 0.6903 GB, free: 0.7852 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1527/2.107, allocations: 1.197 MB / 0.6915 GB, free: 226.1 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 (13): * Single equations (assignments): 12 * 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.00545/2.113, allocations: 2.615 MB / 0.6941 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005803/2.113, allocations: 286.5 kB / 0.6943 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/2.113, allocations: 0 / 0.6943 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002657/2.114, allocations: 116.9 kB / 0.6945 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007396/2.114, allocations: 119.1 kB / 0.6946 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004076/2.118, allocations: 3.812 MB / 0.6983 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/2.119, allocations: 0.8046 MB / 0.6991 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001176/2.119, allocations: 32.53 kB / 0.6991 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/2.119, allocations: 129.4 kB / 0.6992 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/2.119, allocations: 0 / 0.6992 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06134/2.18, allocations: 48.97 MB / 0.7471 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001387/2.18, allocations: 234.1 kB / 0.7473 GB, free: 194.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.849/6.029, allocations: 2.188 kB / 0.7473 GB, free: 194.4 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)