Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_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.8175/0.8175, allocations: 150.9 MB / 166 MB, free: 14.69 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002956, allocations: 15.97 kB / 204.1 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1475, 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve): time 1.576/1.723, allocations: 294.8 MB / 0.5178 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4829/2.206, allocations: 195.1 MB / 0.7083 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004696/2.207, allocations: 8.469 kB / 0.7083 GB, free: 3.754 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SwitchValve.mo:36:3-37:55:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SwitchValve.mo:38:3-40:35:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002116/2.207, allocations: 61.58 kB / 0.7084 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004813/2.207, allocations: 194.5 kB / 0.7086 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02943/2.237, allocations: 10.23 MB / 0.7185 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009503/2.238, allocations: 0.8004 MB / 0.7193 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004172/2.238, allocations: 409.4 kB / 0.7197 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003382/2.238, allocations: 317 kB / 0.72 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/2.239, allocations: 376 kB / 0.7204 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.258e-05/2.239, allocations: 58 kB / 0.7204 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03917/2.278, allocations: 22.41 MB / 0.7423 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003113/2.278, allocations: 156.1 kB / 0.7425 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005635/2.279, allocations: 385.2 kB / 0.7428 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02796/2.307, allocations: 11.84 MB / 0.7544 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/2.307, allocations: 0 / 0.7544 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.182e-06/2.307, allocations: 1.094 kB / 0.7544 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.07e-05/2.307, allocations: 3.406 kB / 0.7544 GB, free: 14.38 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.006576/2.314, allocations: 2.426 MB / 0.7568 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/2.314, allocations: 8.688 kB / 0.7568 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/2.314, allocations: 111.1 kB / 0.7569 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/2.314, allocations: 95.81 kB / 0.757 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/2.315, allocations: 440.3 kB / 0.7574 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.423e-05/2.315, allocations: 77.23 kB / 0.7575 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.876e-05/2.315, allocations: 74.84 kB / 0.7576 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/2.316, allocations: 0.7065 MB / 0.7582 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/2.316, allocations: 2.812 kB / 0.7582 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.115e-05/2.316, allocations: 25.75 kB / 0.7583 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/2.316, allocations: 23.58 kB / 0.7583 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000904/2.317, allocations: 0.6048 MB / 0.7589 GB, free: 12.08 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.009651/2.327, allocations: 7.482 MB / 0.7662 GB, free: 5.879 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008078/2.327, allocations: 382.6 kB / 0.7666 GB, free: 5.82 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/2.328, allocations: 140.6 kB / 0.7667 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6019/2.929, allocations: 221.8 MB / 0.9833 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004692/2.93, allocations: 225.8 kB / 0.9835 GB, free: 450 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 3.015e-06/2.93, allocations: 0 / 0.9835 GB, free: 450 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.002948/2.933, allocations: 0.9077 MB / 0.9844 GB, free: 449.9 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/2.933, allocations: 114.3 kB / 0.9845 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005411/2.934, allocations: 454.3 kB / 0.9849 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/2.934, allocations: 29.45 kB / 0.9849 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000194/2.934, allocations: 337.2 kB / 0.9853 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.673e-05/2.934, allocations: 130.3 kB / 0.9854 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/2.934, allocations: 118.4 kB / 0.9855 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 6.8e-05/2.934, allocations: 353 kB / 0.9858 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/2.934, allocations: 130.6 kB / 0.986 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003058/2.935, allocations: 243.5 kB / 0.9862 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005109/2.94, allocations: 1.306 MB / 0.9875 GB, free: 448.6 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/2.94, allocations: 9.312 kB / 0.9875 GB, free: 448.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009887/2.941, allocations: 0.5823 MB / 0.988 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.093e-05/2.941, allocations: 33.95 kB / 0.9881 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/2.941, allocations: 5.656 kB / 0.9881 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00227/2.943, allocations: 383.6 kB / 0.9884 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002496/2.943, allocations: 71.67 kB / 0.9885 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006118/2.944, allocations: 0.7406 MB / 0.9892 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/2.944, allocations: 57.12 kB / 0.9893 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/2.944, allocations: 27.05 kB / 0.9893 GB, free: 447.9 MB / 0.8106 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: 15 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.C.ftype,$PRE.pulse.T0,PuitsP1.fluid,SwitchValve.fluid,perteDP2.fluid,perteDP1.fluid,pulse.yL.signal,pulse.T0,$whenCondition1,SourceP1.fluid1,perteDP2.C1.diff_on_2,perteDP1.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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 {(3,12)} Notification: Performance of prepare postOptimizeDAE: time 0.000285/2.945, allocations: 227 kB / 0.9895 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.655e-05/2.945, allocations: 55.81 kB / 0.9896 GB, free: 447.7 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001126/2.946, allocations: 0.5992 MB / 0.9902 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/2.946, allocations: 2.688 kB / 0.9902 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/2.946, allocations: 4.344 kB / 0.9902 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/2.946, allocations: 0 / 0.9902 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000566/2.947, allocations: 0.5677 MB / 0.9907 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/2.947, allocations: 0 / 0.9907 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/2.947, allocations: 47.05 kB / 0.9908 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/2.949, allocations: 339.9 kB / 0.9911 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.559e-05/2.949, allocations: 17.42 kB / 0.9911 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006032/2.949, allocations: 0.7518 MB / 0.9918 GB, free: 446.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/2.949, allocations: 0 / 0.9918 GB, free: 446.9 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008979/2.95, allocations: 0.5332 MB / 0.9924 GB, free: 446.7 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/2.95, allocations: 180.3 kB / 0.9925 GB, free: 446.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.213e-05/2.951, allocations: 12.22 kB / 0.9926 GB, free: 446.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/2.951, allocations: 10.78 kB / 0.9926 GB, free: 446.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.288e-05/2.951, allocations: 30.75 kB / 0.9926 GB, free: 446.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/2.951, allocations: 14.28 kB / 0.9926 GB, free: 446.6 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003178/2.951, allocations: 328.8 kB / 0.9929 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.2e-07/2.951, allocations: 0.75 kB / 0.9929 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004726/2.956, allocations: 1.883 MB / 0.9948 GB, free: 446.4 MB / 0.8106 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 (21): * Single equations (assignments): 19 * 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 {(3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009892/2.966, allocations: 3.873 MB / 0.9985 GB, free: 445.7 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007847/2.967, allocations: 435.5 kB / 0.999 GB, free: 445.6 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/2.967, allocations: 0 / 0.999 GB, free: 445.6 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004039/2.967, allocations: 248.3 kB / 0.9992 GB, free: 445.5 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005629/2.968, allocations: 108.7 kB / 0.9993 GB, free: 445.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007362/2.975, allocations: 5.217 MB / 1.004 GB, free: 443.1 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/2.975, allocations: 0.882 MB / 1.005 GB, free: 442.4 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003036/2.976, allocations: 87.86 kB / 1.005 GB, free: 442.4 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/2.976, allocations: 204.4 kB / 1.006 GB, free: 442.4 MB / 0.8106 GB Notification: Performance of SimCode: time 7.32e-07/2.976, allocations: 0 / 1.006 GB, free: 442.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08283/3.059, allocations: 63.98 MB / 1.068 GB, free: 394.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/3.059, allocations: 309.5 kB / 1.068 GB, free: 393.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.697/7.756, allocations: 0 / 1.068 GB, free: 393.9 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe 2>&1)