Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_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.8745/0.8745, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.454e-05/2.466e-05, allocations: 4 kB / 204.9 MB, free: 9.938 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2336, allocations: 31.98 MB / 236.9 MB, free: 5.398 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.741/1.975, allocations: 294.6 MB / 0.519 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2244/2.199, allocations: 186.5 MB / 0.7011 GB, free: 2.184 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003345/2.2, allocations: 7.938 kB / 0.7011 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002313/2.2, allocations: 75.7 kB / 0.7012 GB, free: 2.102 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003454/2.2, allocations: 155.1 kB / 0.7014 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3727/2.573, allocations: 8.915 MB / 0.7101 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005798/2.574, allocations: 409.5 kB / 0.7104 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/2.574, allocations: 184.9 kB / 0.7106 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/2.574, allocations: 141.8 kB / 0.7108 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/2.574, allocations: 190.2 kB / 0.7109 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.488e-05/2.574, allocations: 14.19 kB / 0.711 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03542/2.61, allocations: 20.07 MB / 0.7306 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000175/2.61, allocations: 81.33 kB / 0.7306 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002978/2.61, allocations: 201.3 kB / 0.7308 GB, free: 4.891 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02319/2.633, allocations: 9.868 MB / 0.7405 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/2.633, allocations: 1.25 kB / 0.7405 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.913e-06/2.633, allocations: 0 / 0.7405 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.772e-06/2.633, allocations: 0 / 0.7405 GB, free: 2.027 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.004306/2.638, allocations: 1.755 MB / 0.7422 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/2.638, allocations: 12.31 kB / 0.7422 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.062e-05/2.638, allocations: 86.47 kB / 0.7423 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.44e-05/2.638, allocations: 49.5 kB / 0.7423 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/2.638, allocations: 340.1 kB / 0.7426 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/2.638, allocations: 26.94 kB / 0.7427 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/2.638, allocations: 35.25 kB / 0.7427 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004638/2.639, allocations: 378 kB / 0.7431 GB, free: 364 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/2.639, allocations: 0 / 0.7431 GB, free: 364 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/2.639, allocations: 17.38 kB / 0.7431 GB, free: 360 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/2.639, allocations: 9.406 kB / 0.7431 GB, free: 360 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003651/2.639, allocations: 266.3 kB / 0.7433 GB, free: 328 kB / 0.5762 GB 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.00784/2.647, allocations: 6.218 MB / 0.7494 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/2.647, allocations: 115 kB / 0.7495 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.16e-05/2.647, allocations: 42.22 kB / 0.7496 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2384/2.886, allocations: 119.3 MB / 0.866 GB, free: 2.336 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/2.886, allocations: 41.97 kB / 0.8661 GB, free: 2.293 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 2.344e-06/2.886, allocations: 0 / 0.8661 GB, free: 2.293 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0008726/2.887, allocations: 315.9 kB / 0.8664 GB, free: 1.992 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/2.887, allocations: 62.25 kB / 0.8664 GB, free: 1.922 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005136/2.887, allocations: 410.5 kB / 0.8668 GB, free: 1.59 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/2.887, allocations: 25.7 kB / 0.8669 GB, free: 1.559 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/2.888, allocations: 268.2 kB / 0.8671 GB, free: 1.352 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/2.888, allocations: 23.39 kB / 0.8671 GB, free: 1.332 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.654e-05/2.888, allocations: 35.5 kB / 0.8672 GB, free: 1.305 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001185/2.888, allocations: 341.9 kB / 0.8675 GB, free: 0.9727 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/2.888, allocations: 66.41 kB / 0.8676 GB, free: 0.9258 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/2.888, allocations: 168.7 kB / 0.8677 GB, free: 0.7422 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/2.888, allocations: 227.7 kB / 0.8679 GB, free: 0.5273 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/2.888, allocations: 4 kB / 0.8679 GB, free: 0.5234 MB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005958/2.889, allocations: 303.9 kB / 0.8682 GB, free: 300 kB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/2.889, allocations: 10.91 kB / 0.8682 GB, free: 292 kB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/2.889, allocations: 4.375 kB / 0.8683 GB, free: 288 kB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008666/2.89, allocations: 155 kB / 0.8684 GB, free: 140 kB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/2.89, allocations: 38.89 kB / 0.8684 GB, free: 104 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004815/2.89, allocations: 0.5653 MB / 0.869 GB, free: 15.53 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/2.891, allocations: 31.42 kB / 0.869 GB, free: 15.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/2.891, allocations: 12 kB / 0.869 GB, free: 15.49 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.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): 23 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001831/2.891, allocations: 166.8 kB / 0.8692 GB, free: 15.34 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.908e-05/2.891, allocations: 32.94 kB / 0.8692 GB, free: 15.31 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004772/2.891, allocations: 214.1 kB / 0.8694 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/2.891, allocations: 4 kB / 0.8694 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/2.892, allocations: 0 / 0.8694 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/2.892, allocations: 0 / 0.8694 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003585/2.892, allocations: 370.9 kB / 0.8698 GB, free: 14.78 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/2.892, allocations: 0 / 0.8698 GB, free: 14.78 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.494e-05/2.892, allocations: 6.906 kB / 0.8698 GB, free: 14.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005116/2.892, allocations: 96.14 kB / 0.8699 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/2.892, allocations: 1.906 kB / 0.8699 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004022/2.893, allocations: 0.5739 MB / 0.8704 GB, free: 14.11 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/2.893, allocations: 2.906 kB / 0.8704 GB, free: 14.11 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003641/2.893, allocations: 199.4 kB / 0.8706 GB, free: 13.91 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 9.423e-05/2.893, allocations: 112.6 kB / 0.8707 GB, free: 13.79 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.085e-05/2.893, allocations: 11.53 kB / 0.8708 GB, free: 13.78 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.397e-05/2.893, allocations: 4 kB / 0.8708 GB, free: 13.78 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/2.894, allocations: 2.906 kB / 0.8708 GB, free: 13.78 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/2.894, allocations: 7.984 kB / 0.8708 GB, free: 13.77 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003116/2.894, allocations: 298.1 kB / 0.8711 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/2.894, allocations: 0 / 0.8711 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003763/2.898, allocations: 1.459 MB / 0.8725 GB, free: 12.17 MB / 0.7169 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 (4): * Single equations (assignments): 3 * 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.007773/2.905, allocations: 2.912 MB / 0.8753 GB, free: 9.59 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004423/2.906, allocations: 162.8 kB / 0.8755 GB, free: 9.469 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/2.906, allocations: 0 / 0.8755 GB, free: 9.469 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001655/2.906, allocations: 66.94 kB / 0.8755 GB, free: 9.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/2.907, allocations: 65.92 kB / 0.8756 GB, free: 9.367 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006032/2.913, allocations: 3.811 MB / 0.8793 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/2.913, allocations: 0.7948 MB / 0.8801 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001627/2.913, allocations: 46.91 kB / 0.8801 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/2.913, allocations: 120.2 kB / 0.8803 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of SimCode: time 1.282e-06/2.913, allocations: 4 kB / 0.8803 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.306/3.219, allocations: 51.31 MB / 0.9304 GB, free: 1.875 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003525/3.22, allocations: 316.3 kB / 0.9307 GB, free: 1.488 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.18/7.4, allocations: 64 / 0.9307 GB, free: 1.488 MB / 0.7637 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)