Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.9901/0.99, allocations: 150.9 MB / 166.4 MB, free: 14.22 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003593/0.0003595, allocations: 19.98 kB / 204.6 MB, free: 9.535 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1496, allocations: 31.33 MB / 236 MB, free: 5.422 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.6/1.75, allocations: 294.7 MB / 0.5182 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04079/1.791, allocations: 34.76 MB / 0.5522 GB, free: 10.63 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000208/1.791, allocations: 4 kB / 0.5522 GB, free: 10.63 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.0004856/1.791, allocations: 156 kB / 0.5523 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003069/1.792, allocations: 155 kB / 0.5525 GB, free: 10.32 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0256/1.817, allocations: 9.738 MB / 0.562 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006163/1.818, allocations: 382.4 kB / 0.5624 GB, free: 216 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002834/1.818, allocations: 135.1 kB / 0.5625 GB, free: 84 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003272/1.819, allocations: 167.3 kB / 0.5626 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/1.819, allocations: 159.4 kB / 0.5628 GB, free: 15.76 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.338e-05/1.819, allocations: 20 kB / 0.5628 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03139/1.85, allocations: 17.75 MB / 0.5801 GB, free: 13.97 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/1.851, allocations: 71.77 kB / 0.5802 GB, free: 13.9 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002523/1.851, allocations: 167 kB / 0.5804 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02319/1.874, allocations: 8.527 MB / 0.5887 GB, free: 5.188 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/1.874, allocations: 0 / 0.5887 GB, free: 5.188 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.843e-06/1.874, allocations: 4 kB / 0.5887 GB, free: 5.184 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/1.874, allocations: 0 / 0.5887 GB, free: 5.184 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.003683/1.878, allocations: 1.522 MB / 0.5902 GB, free: 3.613 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/1.878, allocations: 12.03 kB / 0.5902 GB, free: 3.602 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.44e-05/1.878, allocations: 62.48 kB / 0.5903 GB, free: 3.531 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.853e-05/1.878, allocations: 51.36 kB / 0.5903 GB, free: 3.48 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/1.878, allocations: 288 kB / 0.5906 GB, free: 3.164 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/1.878, allocations: 20.44 kB / 0.5906 GB, free: 3.145 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/1.878, allocations: 16 kB / 0.5906 GB, free: 3.129 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/1.879, allocations: 323.4 kB / 0.5909 GB, free: 2.781 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/1.879, allocations: 0 / 0.5909 GB, free: 2.781 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/1.879, allocations: 8 kB / 0.5909 GB, free: 2.773 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/1.879, allocations: 19.92 kB / 0.591 GB, free: 2.754 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000274/1.879, allocations: 209 kB / 0.5912 GB, free: 2.551 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.0383/1.917, allocations: 18.1 MB / 0.6088 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002234/1.918, allocations: 138.5 kB / 0.609 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/1.918, allocations: 108.8 kB / 0.6091 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1593/2.077, allocations: 77.28 MB / 0.6845 GB, free: 8.266 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/2.077, allocations: 42.5 kB / 0.6846 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.245e-06/2.077, allocations: 0 / 0.6846 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001156/2.078, allocations: 499.2 kB / 0.6851 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/2.078, allocations: 59.34 kB / 0.6851 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004105/2.079, allocations: 352.5 kB / 0.6854 GB, free: 7.281 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/2.079, allocations: 25.7 kB / 0.6855 GB, free: 7.25 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000133/2.079, allocations: 192.4 kB / 0.6857 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.931e-05/2.079, allocations: 122.2 kB / 0.6858 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.553e-05/2.079, allocations: 45.7 kB / 0.6858 GB, free: 6.883 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001259/2.079, allocations: 346.8 kB / 0.6861 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/2.079, allocations: 95.91 kB / 0.6862 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/2.08, allocations: 140.2 kB / 0.6864 GB, free: 6.289 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/2.08, allocations: 244.5 kB / 0.6866 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/2.08, allocations: 4 kB / 0.6866 GB, free: 6.031 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005165/2.08, allocations: 342.2 kB / 0.6869 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/2.08, allocations: 8 kB / 0.6869 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/2.08, allocations: 4.125 kB / 0.6869 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008533/2.081, allocations: 136.6 kB / 0.6871 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.889e-05/2.081, allocations: 15.98 kB / 0.6871 GB, free: 5.523 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005476/2.082, allocations: 0.6119 MB / 0.6877 GB, free: 4.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/2.082, allocations: 39.55 kB / 0.6877 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/2.082, allocations: 4 kB / 0.6877 GB, free: 4.844 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.0001544/2.082, allocations: 161.8 kB / 0.6879 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.803e-05/2.082, allocations: 31.62 kB / 0.6879 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007873/2.083, allocations: 0.6496 MB / 0.6886 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004055/2.084, allocations: 255.4 kB / 0.6888 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/2.084, allocations: 0 / 0.6888 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/2.084, allocations: 3.984 kB / 0.6888 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/2.085, allocations: 0.8351 MB / 0.6896 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/2.085, allocations: 0 / 0.6896 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.801e-05/2.085, allocations: 19.98 kB / 0.6896 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003621/2.085, allocations: 108.8 kB / 0.6897 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/2.085, allocations: 0 / 0.6897 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004737/2.086, allocations: 0.6366 MB / 0.6904 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/2.086, allocations: 7.875 kB / 0.6904 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000493/2.086, allocations: 383.8 kB / 0.6907 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/2.086, allocations: 120.7 kB / 0.6908 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.126e-05/2.086, allocations: 11.84 kB / 0.6909 GB, free: 1.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/2.086, allocations: 7.938 kB / 0.6909 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.966e-05/2.086, allocations: 7.984 kB / 0.6909 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/2.087, allocations: 8 kB / 0.6909 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003315/2.087, allocations: 331.1 kB / 0.6912 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.087, allocations: 0 / 0.6912 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1812/2.268, allocations: 1.203 MB / 0.6924 GB, free: 226.5 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.006266/2.274, allocations: 2.556 MB / 0.6949 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006972/2.275, allocations: 299.7 kB / 0.6952 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/2.275, allocations: 2.594 kB / 0.6952 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002811/2.275, allocations: 116 kB / 0.6953 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008985/2.276, allocations: 133.6 kB / 0.6954 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006075/2.282, allocations: 3.707 MB / 0.699 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/2.283, allocations: 0.8076 MB / 0.6998 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001489/2.283, allocations: 34.77 kB / 0.6998 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/2.283, allocations: 127.7 kB / 0.7 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of SimCode: time 3.6e-07/2.283, allocations: 0 / 0.7 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07002/2.353, allocations: 49.14 MB / 0.7479 GB, free: 194.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/15.4, allocations: 5.969 kB / 0.748 GB, free: 194.6 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)