Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.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.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve",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.8436/0.8436, allocations: 150.9 MB / 166 MB, free: 14.57 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003239/0.0003241, allocations: 15.97 kB / 204.1 MB, free: 9.984 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1689, 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.Book.SimpleExamples.PressureLoss.TestSwitchValve): time 1.583/1.752, allocations: 294.6 MB / 0.5176 GB, free: 12.58 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1889/1.941, allocations: 187.7 MB / 0.7009 GB, free: 0.5039 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003406/1.941, allocations: 4 kB / 0.7009 GB, free: 0.5 MB / 0.5762 GB [/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/SwitchValve.mo:37:3-39: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/SwitchValve.mo:40:3-42:38: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/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). Notification: Performance of NFTyping.typeComponents: time 0.0003995/1.941, allocations: 103.4 kB / 0.701 GB, free: 408 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003489/1.942, allocations: 170.7 kB / 0.7012 GB, free: 236 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3003/2.242, allocations: 8.686 MB / 0.7096 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009748/2.243, allocations: 0.6576 MB / 0.7103 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003972/2.243, allocations: 232.5 kB / 0.7105 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000462/2.244, allocations: 250.2 kB / 0.7107 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002804/2.244, allocations: 241.7 kB / 0.711 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.794e-05/2.244, allocations: 29.44 kB / 0.711 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03637/2.281, allocations: 20.07 MB / 0.7306 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002017/2.281, allocations: 85.91 kB / 0.7307 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004706/2.281, allocations: 267.4 kB / 0.7309 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02337/2.305, allocations: 10.07 MB / 0.7408 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/2.305, allocations: 0 / 0.7408 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.382e-06/2.305, allocations: 2.219 kB / 0.7408 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.676e-06/2.305, allocations: 2.531 kB / 0.7408 GB, free: 0.9258 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.005201/2.31, allocations: 1.967 MB / 0.7427 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/2.31, allocations: 14.19 kB / 0.7427 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.203e-05/2.31, allocations: 95.22 kB / 0.7428 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.682e-05/2.31, allocations: 57.47 kB / 0.7429 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/2.311, allocations: 325.9 kB / 0.7432 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.412e-05/2.311, allocations: 54.55 kB / 0.7432 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.615e-05/2.311, allocations: 48.12 kB / 0.7433 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006746/2.311, allocations: 0.5473 MB / 0.7438 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/2.311, allocations: 4.203 kB / 0.7438 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/2.311, allocations: 18.28 kB / 0.7438 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/2.312, allocations: 22.45 kB / 0.7438 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004533/2.312, allocations: 347.4 kB / 0.7442 GB, free: 15.03 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.03485/2.347, allocations: 19.37 MB / 0.7631 GB, free: 0.6797 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006624/2.348, allocations: 323.8 kB / 0.7634 GB, free: 0.6289 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/2.348, allocations: 192.4 kB / 0.7636 GB, free: 0.6094 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.275/2.623, allocations: 150.4 MB / 0.9105 GB, free: 14.75 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005606/2.623, allocations: 297.1 kB / 0.9108 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=71): time 2.104e-06/2.623, allocations: 0 / 0.9108 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of matching and sorting (n=71): time 0.003155/2.627, allocations: 1.102 MB / 0.9119 GB, free: 13.64 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.708e-05/2.627, allocations: 169 kB / 0.912 GB, free: 13.44 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003648/2.627, allocations: 355 kB / 0.9124 GB, free: 13.16 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/2.627, allocations: 33.77 kB / 0.9124 GB, free: 13.12 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/2.627, allocations: 228.9 kB / 0.9126 GB, free: 12.95 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/2.627, allocations: 228 kB / 0.9128 GB, free: 12.75 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/2.628, allocations: 97.53 kB / 0.9129 GB, free: 12.68 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001449/2.628, allocations: 359.7 kB / 0.9133 GB, free: 12.34 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002386/2.628, allocations: 148.5 kB / 0.9134 GB, free: 12.26 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/2.628, allocations: 246.5 kB / 0.9136 GB, free: 12.06 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00385/2.632, allocations: 1.179 MB / 0.9148 GB, free: 11.09 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/2.632, allocations: 4 kB / 0.9148 GB, free: 11.09 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009679/2.633, allocations: 0.6515 MB / 0.9154 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/2.633, allocations: 29.7 kB / 0.9155 GB, free: 10.61 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/2.633, allocations: 8.25 kB / 0.9155 GB, free: 10.6 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002374/2.636, allocations: 0.6453 MB / 0.9161 GB, free: 10 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/2.636, allocations: 30.95 kB / 0.9161 GB, free: 9.98 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/2.637, allocations: 0.9267 MB / 0.917 GB, free: 9.199 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/2.637, allocations: 62.83 kB / 0.9171 GB, free: 9.141 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-05/2.637, allocations: 19.28 kB / 0.9171 GB, free: 9.129 MB / 0.7637 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (perteDP1.C2.b,perteDP1.C1.a,perteDP2.C2.b,perteDP2.C1.a,SwitchValve.C2.b,SwitchValve.C1.a,PuitsP1.C.a,SourceP1.C.b,$PRE.pulse.T0,pulse.yL.signal,pulse.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002769/2.637, allocations: 210 kB / 0.9173 GB, free: 8.945 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.853e-05/2.637, allocations: 43.44 kB / 0.9174 GB, free: 8.902 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/2.639, allocations: 1.139 MB / 0.9185 GB, free: 8.07 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008926/2.64, allocations: 0.6906 MB / 0.9191 GB, free: 7.594 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/2.64, allocations: 128 / 0.9191 GB, free: 7.594 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/2.64, allocations: 11.98 kB / 0.9192 GB, free: 7.582 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002208/2.642, allocations: 1.705 MB / 0.9208 GB, free: 6.297 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/2.642, allocations: 3.984 kB / 0.9208 GB, free: 6.293 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/2.642, allocations: 54.92 kB / 0.9209 GB, free: 6.242 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002052/2.644, allocations: 0.67 MB / 0.9215 GB, free: 5.637 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/2.644, allocations: 11 kB / 0.9215 GB, free: 5.633 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009789/2.645, allocations: 1.004 MB / 0.9225 GB, free: 4.797 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/2.645, allocations: 0 / 0.9225 GB, free: 4.797 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009836/2.646, allocations: 0.8197 MB / 0.9233 GB, free: 4.18 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001797/2.647, allocations: 160.6 kB / 0.9235 GB, free: 4.02 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.771e-05/2.647, allocations: 20.78 kB / 0.9235 GB, free: 4.008 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/2.647, allocations: 20.95 kB / 0.9235 GB, free: 3.992 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.871e-05/2.647, allocations: 36.45 kB / 0.9235 GB, free: 3.961 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/2.647, allocations: 20.42 kB / 0.9236 GB, free: 3.945 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003135/2.647, allocations: 319.2 kB / 0.9239 GB, free: 3.707 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/2.647, allocations: 0 / 0.9239 GB, free: 3.707 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.00433/2.652, allocations: 1.549 MB / 0.9254 GB, free: 2.266 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse.T0,pulse.yL.signal) * Number of discrete states: 3 (pulse.yL.signal,pulse.T0,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008383/2.66, allocations: 3.611 MB / 0.9289 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001335/2.661, allocations: 0.6879 MB / 0.9296 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/2.662, allocations: 2.812 kB / 0.9296 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006056/2.662, allocations: 367.8 kB / 0.9299 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001201/2.663, allocations: 233.7 kB / 0.9302 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008036/2.671, allocations: 5.253 MB / 0.9353 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/2.672, allocations: 0.8987 MB / 0.9362 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002777/2.672, allocations: 55.81 kB / 0.9362 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002719/2.672, allocations: 219.4 kB / 0.9364 GB, free: 7.477 MB / 0.7794 GB Notification: Performance of SimCode: time 9.72e-07/2.672, allocations: 0 / 0.9364 GB, free: 7.477 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.265/2.937, allocations: 61.9 MB / 0.9969 GB, free: 424.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001514/2.938, allocations: 298 kB / 0.9972 GB, free: 424.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.472/7.41, allocations: 2.766 kB / 0.9972 GB, free: 424.5 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe 2>&1)