Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.7867/0.7867, allocations: 150.9 MB / 166 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.000299, allocations: 19.97 kB / 204.1 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1267, allocations: 31.32 MB / 235.4 MB, free: 5.438 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.TestSwitchValve): time 1.504/1.63, allocations: 294.7 MB / 0.5177 GB, free: 12.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1758/1.806, allocations: 187.7 MB / 0.701 GB, free: 0.5781 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002755/1.807, allocations: 4 kB / 0.701 GB, free: 0.5742 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.0003688/1.807, allocations: 103.9 kB / 0.7011 GB, free: 484 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003139/1.807, allocations: 174.7 kB / 0.7013 GB, free: 308 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2704/2.078, allocations: 8.685 MB / 0.7097 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008036/2.078, allocations: 0.6511 MB / 0.7104 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/2.079, allocations: 232.5 kB / 0.7106 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000485/2.079, allocations: 255 kB / 0.7108 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003768/2.08, allocations: 242.9 kB / 0.7111 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.177e-05/2.08, allocations: 29.38 kB / 0.7111 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03007/2.11, allocations: 20.08 MB / 0.7307 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001026/2.11, allocations: 84.28 kB / 0.7308 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003565/2.11, allocations: 268.7 kB / 0.731 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01692/2.127, allocations: 10.07 MB / 0.7409 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/2.127, allocations: 0 / 0.7409 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.102e-06/2.127, allocations: 0 / 0.7409 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.473e-05/2.127, allocations: 0 / 0.7409 GB, free: 0.8711 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.004948/2.132, allocations: 1.964 MB / 0.7428 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/2.132, allocations: 8.125 kB / 0.7428 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001017/2.133, allocations: 94.03 kB / 0.7429 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/2.133, allocations: 62.91 kB / 0.7429 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003779/2.133, allocations: 331.1 kB / 0.7433 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.889e-05/2.133, allocations: 61.23 kB / 0.7433 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.475e-05/2.133, allocations: 40.19 kB / 0.7434 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007207/2.134, allocations: 0.5487 MB / 0.7439 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/2.134, allocations: 2.719 kB / 0.7439 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.233e-05/2.134, allocations: 19.47 kB / 0.7439 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.185e-05/2.134, allocations: 21.86 kB / 0.7439 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004818/2.134, allocations: 350.5 kB / 0.7443 GB, free: 14.97 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.03701/2.171, allocations: 19.37 MB / 0.7632 GB, free: 0.6172 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007809/2.172, allocations: 325 kB / 0.7635 GB, free: 0.5664 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/2.173, allocations: 195.2 kB / 0.7637 GB, free: 0.5469 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2871/2.46, allocations: 150.4 MB / 0.9106 GB, free: 14.74 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004813/2.46, allocations: 295.1 kB / 0.9109 GB, free: 14.5 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=71): time 2.244e-06/2.46, allocations: 0 / 0.9109 GB, free: 14.5 MB / 0.7637 GB Notification: Performance of matching and sorting (n=71): time 0.003144/2.463, allocations: 1.103 MB / 0.912 GB, free: 13.63 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/2.464, allocations: 170.2 kB / 0.9121 GB, free: 13.43 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/2.464, allocations: 356.3 kB / 0.9125 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.791e-05/2.464, allocations: 32.89 kB / 0.9125 GB, free: 13.11 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/2.464, allocations: 221.8 kB / 0.9127 GB, free: 12.93 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/2.464, allocations: 231.6 kB / 0.9129 GB, free: 12.74 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/2.464, allocations: 93.91 kB / 0.913 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001228/2.464, allocations: 359.8 kB / 0.9134 GB, free: 12.33 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/2.465, allocations: 147.5 kB / 0.9135 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/2.465, allocations: 248.1 kB / 0.9137 GB, free: 12.05 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003964/2.469, allocations: 1.169 MB / 0.9149 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/2.469, allocations: 4.75 kB / 0.9149 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.000946/2.47, allocations: 0.6514 MB / 0.9155 GB, free: 10.63 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/2.47, allocations: 37.33 kB / 0.9156 GB, free: 10.59 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/2.47, allocations: 10.75 kB / 0.9156 GB, free: 10.59 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/2.472, allocations: 0.644 MB / 0.9162 GB, free: 9.992 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/2.473, allocations: 26.98 kB / 0.9162 GB, free: 9.969 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009623/2.474, allocations: 0.9341 MB / 0.9171 GB, free: 9.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/2.474, allocations: 60.17 kB / 0.9172 GB, free: 9.125 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/2.474, allocations: 15.19 kB / 0.9172 GB, free: 9.113 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.0002314/2.474, allocations: 214.6 kB / 0.9174 GB, free: 8.926 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.349e-05/2.474, allocations: 43.44 kB / 0.9174 GB, free: 8.883 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/2.476, allocations: 1.134 MB / 0.9186 GB, free: 8.059 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009521/2.477, allocations: 0.6971 MB / 0.9192 GB, free: 7.574 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/2.477, allocations: 0 / 0.9192 GB, free: 7.574 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/2.477, allocations: 3.984 kB / 0.9192 GB, free: 7.57 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/2.479, allocations: 1.7 MB / 0.9209 GB, free: 6.289 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/2.479, allocations: 0 / 0.9209 GB, free: 6.289 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001654/2.479, allocations: 62.62 kB / 0.921 GB, free: 6.234 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002131/2.481, allocations: 0.6658 MB / 0.9216 GB, free: 5.629 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/2.481, allocations: 10.88 kB / 0.9216 GB, free: 5.625 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009325/2.482, allocations: 1.003 MB / 0.9226 GB, free: 4.789 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/2.482, allocations: 0 / 0.9226 GB, free: 4.789 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000963/2.483, allocations: 0.8239 MB / 0.9234 GB, free: 4.172 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/2.483, allocations: 158.1 kB / 0.9236 GB, free: 4.012 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.531e-05/2.483, allocations: 21.84 kB / 0.9236 GB, free: 4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000263/2.484, allocations: 24.83 kB / 0.9236 GB, free: 3.98 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.623e-05/2.484, allocations: 31.89 kB / 0.9236 GB, free: 3.953 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.858e-05/2.484, allocations: 22.23 kB / 0.9237 GB, free: 3.938 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003025/2.484, allocations: 315 kB / 0.924 GB, free: 3.699 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/2.484, allocations: 0 / 0.924 GB, free: 3.699 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003517/2.488, allocations: 1.547 MB / 0.9255 GB, free: 2.262 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.0103/2.498, allocations: 3.615 MB / 0.929 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001798/2.5, allocations: 0.6916 MB / 0.9297 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/2.5, allocations: 0 / 0.9297 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001012/2.501, allocations: 367.9 kB / 0.93 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/2.503, allocations: 238 kB / 0.9302 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/2.514, allocations: 5.249 MB / 0.9354 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005702/2.514, allocations: 0.8948 MB / 0.9362 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003574/2.515, allocations: 55.33 kB / 0.9363 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003363/2.515, allocations: 211.4 kB / 0.9365 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/2.515, allocations: 0 / 0.9365 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2453/2.76, allocations: 61.89 MB / 0.9969 GB, free: 424.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/2.761, allocations: 282.5 kB / 0.9972 GB, free: 424.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.412/7.173, allocations: 0.875 kB / 0.9972 GB, free: 424.5 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe 2>&1)