Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.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.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicReliefValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicReliefValve",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.8453/0.8453, allocations: 150.9 MB / 166 MB, free: 14.69 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003314/0.0003314, allocations: 11.98 kB / 204.1 MB, free: 10.08 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1424, allocations: 31.34 MB / 235.4 MB, free: 5.406 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.TestDynamicReliefValve): time 1.589/1.731, allocations: 295.6 MB / 0.5186 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4544/2.186, allocations: 188.3 MB / 0.7025 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004867/2.186, allocations: 6.094 kB / 0.7025 GB, free: 3.516 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicReliefValve.mo:73:3-75: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/DynamicReliefValve.mo:76:3-78:33:writable] Warning: Connector C2 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/LumpedStraightPipe.mo:49:3-50:42: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/LumpedStraightPipe.mo:51:3-53:37:writable] Warning: Connector C2 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/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/PressureLosses/Bend.mo:55:3-57:42: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/Bend.mo:58:3-60:43:writable] Warning: Connector C2 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/Diaphragm.mo:30:3-32:42: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/Diaphragm.mo:33:3-35:37: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.0008766/2.187, allocations: 355.5 kB / 0.7028 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001391/2.188, allocations: 0.5044 MB / 0.7033 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02298/2.211, allocations: 8.841 MB / 0.712 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001416/2.213, allocations: 1.152 MB / 0.7131 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006476/2.214, allocations: 442 kB / 0.7135 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007963/2.214, allocations: 474.2 kB / 0.714 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007914/2.215, allocations: 0.603 MB / 0.7145 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001747/2.215, allocations: 43.28 kB / 0.7146 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03075/2.246, allocations: 20.29 MB / 0.7344 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004055/2.247, allocations: 289.6 kB / 0.7347 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006842/2.247, allocations: 0.5206 MB / 0.7352 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02174/2.269, allocations: 10.84 MB / 0.7458 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/2.269, allocations: 0 / 0.7458 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.623e-06/2.269, allocations: 1.094 kB / 0.7458 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.538e-05/2.269, allocations: 0 / 0.7458 GB, free: 15.32 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.006794/2.276, allocations: 2.628 MB / 0.7483 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/2.276, allocations: 10.16 kB / 0.7484 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000139/2.276, allocations: 121.2 kB / 0.7485 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000192/2.276, allocations: 131.3 kB / 0.7486 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007555/2.277, allocations: 0.6726 MB / 0.7492 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.117e-05/2.277, allocations: 71.7 kB / 0.7493 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.942e-05/2.277, allocations: 67.17 kB / 0.7494 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/2.278, allocations: 0.913 MB / 0.7503 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/2.278, allocations: 2.812 kB / 0.7503 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.751e-05/2.279, allocations: 32.03 kB / 0.7503 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/2.279, allocations: 31.62 kB / 0.7503 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/2.28, allocations: 0.7642 MB / 0.7511 GB, free: 12.65 MB / 0.5919 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.02116/2.301, allocations: 12.69 MB / 0.7635 GB, free: 3.371 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/2.303, allocations: 0.6476 MB / 0.7641 GB, free: 3.258 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006161/2.303, allocations: 369.2 kB / 0.7645 GB, free: 3.219 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3074/2.611, allocations: 158.8 MB / 0.9196 GB, free: 7.875 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008981/2.612, allocations: 462.5 kB / 0.92 GB, free: 7.543 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=109): time 2.354e-06/2.612, allocations: 0 / 0.92 GB, free: 7.543 MB / 0.7637 GB Notification: Performance of matching and sorting (n=109): time 0.007866/2.619, allocations: 2.171 MB / 0.9221 GB, free: 5.754 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.468e-05/2.62, allocations: 162.7 kB / 0.9223 GB, free: 5.559 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/2.621, allocations: 1.283 MB / 0.9235 GB, free: 4.574 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.936e-05/2.621, allocations: 39.2 kB / 0.9236 GB, free: 4.539 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003017/2.621, allocations: 459.9 kB / 0.924 GB, free: 4.27 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002383/2.622, allocations: 364.4 kB / 0.9244 GB, free: 3.961 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002294/2.622, allocations: 157.6 kB / 0.9245 GB, free: 3.855 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000109/2.622, allocations: 344.6 kB / 0.9248 GB, free: 3.527 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005958/2.623, allocations: 356.2 kB / 0.9252 GB, free: 3.305 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007331/2.623, allocations: 0.5179 MB / 0.9257 GB, free: 2.863 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/2.625, allocations: 0.8303 MB / 0.9265 GB, free: 2.277 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/2.625, allocations: 0 / 0.9265 GB, free: 2.277 MB / 0.7637 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002126/2.627, allocations: 1.238 MB / 0.9277 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/2.627, allocations: 5.406 kB / 0.9277 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/2.627, allocations: 4 kB / 0.9277 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004503/2.631, allocations: 1.067 MB / 0.9288 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005441/2.632, allocations: 103.4 kB / 0.9289 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/2.633, allocations: 1.128 MB / 0.93 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000722/2.634, allocations: 111 kB / 0.9301 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.949e-05/2.634, allocations: 28.88 kB / 0.9301 GB, free: 14.61 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 (diaphragm.C2.b,diaphragm.C1.a,bend.C2.b,bend.C1.a,sourceP.C.b,sinkP.C.a,pipe.C2.b,pipe.C1.a,reliefValve.C2.b,reliefValve.C1.a,reliefValve.clapper_is_free,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 53 * 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 {(7,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0004666/2.635, allocations: 332.6 kB / 0.9304 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/2.635, allocations: 110.5 kB / 0.9305 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/2.638, allocations: 1.692 MB / 0.9322 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002202/2.64, allocations: 1.176 MB / 0.9333 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/2.64, allocations: 3.938 kB / 0.9333 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/2.64, allocations: 3.984 kB / 0.9333 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004168/2.644, allocations: 2.792 MB / 0.9361 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/2.644, allocations: 0 / 0.9361 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006015/2.645, allocations: 137.7 kB / 0.9362 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003605/2.648, allocations: 1.051 MB / 0.9372 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.05e-05/2.649, allocations: 16 kB / 0.9372 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00142/2.65, allocations: 1.22 MB / 0.9384 GB, free: 6.023 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/2.65, allocations: 0 / 0.9384 GB, free: 6.023 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003404/2.653, allocations: 1.9 MB / 0.9403 GB, free: 4.109 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004066/2.654, allocations: 291.1 kB / 0.9406 GB, free: 3.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/2.654, allocations: 24 kB / 0.9406 GB, free: 3.781 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000579/2.655, allocations: 55.8 kB / 0.9406 GB, free: 3.727 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/2.655, allocations: 65.98 kB / 0.9407 GB, free: 3.664 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.694e-05/2.655, allocations: 31.98 kB / 0.9407 GB, free: 3.633 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001061/2.656, allocations: 0.9515 MB / 0.9417 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/2.656, allocations: 0 / 0.9417 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004171/2.66, allocations: 1.686 MB / 0.9433 GB, free: 0.9844 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (reliefValve.z,reliefValve.v,reliefValve.Wdyn) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,reliefValve.clapper_is_free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(7,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01082/2.671, allocations: 4.765 MB / 0.948 GB, free: 12.5 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002448/2.673, allocations: 1.174 MB / 0.9491 GB, free: 11.32 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/2.673, allocations: 0.8125 kB / 0.9491 GB, free: 11.32 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.00124/2.675, allocations: 0.5932 MB / 0.9497 GB, free: 10.74 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/2.676, allocations: 329.1 kB / 0.95 GB, free: 10.42 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/2.694, allocations: 11.11 MB / 0.9608 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007361/2.695, allocations: 1.197 MB / 0.962 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004792/2.696, allocations: 121.6 kB / 0.9621 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005658/2.696, allocations: 499.3 kB / 0.9626 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of SimCode: time 4.91e-07/2.696, allocations: 0 / 0.9626 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2589/2.955, allocations: 74.97 MB / 1.036 GB, free: 420 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001528/2.955, allocations: 286.4 kB / 1.036 GB, free: 419.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.815/7.771, allocations: 0 / 1.036 GB, free: 419.6 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicReliefValve_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicReliefValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe 2>&1)