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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.795/0.795, allocations: 150.9 MB / 166 MB, free: 14.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.000293, allocations: 15.98 kB / 204 MB, free: 10.14 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1509, allocations: 31.33 MB / 235.4 MB, free: 5.461 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.529/1.68, allocations: 293.7 MB / 0.5166 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1803/1.861, allocations: 187.7 MB / 0.7 GB, free: 0.7461 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002845/1.861, allocations: 8 kB / 0.7 GB, free: 0.7383 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.0003628/1.861, allocations: 112.3 kB / 0.7001 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003015/1.862, allocations: 158.8 kB / 0.7002 GB, free: 484 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2807/2.142, allocations: 8.685 MB / 0.7087 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008046/2.143, allocations: 0.6566 MB / 0.7093 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003149/2.143, allocations: 237.8 kB / 0.7096 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003593/2.144, allocations: 252.9 kB / 0.7098 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/2.144, allocations: 243 kB / 0.71 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.344e-05/2.144, allocations: 25.62 kB / 0.7101 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03008/2.174, allocations: 20.07 MB / 0.7297 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000144/2.174, allocations: 87.83 kB / 0.7297 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000414/2.175, allocations: 275.6 kB / 0.73 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02042/2.195, allocations: 10.06 MB / 0.7398 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/2.195, allocations: 0 / 0.7398 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.282e-06/2.195, allocations: 1.5 kB / 0.7398 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.284e-06/2.195, allocations: 0 / 0.7398 GB, free: 1.023 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.0047/2.2, allocations: 1.964 MB / 0.7418 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/2.2, allocations: 11.84 kB / 0.7418 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/2.2, allocations: 57.84 kB / 0.7418 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003341/2.2, allocations: 335.9 kB / 0.7421 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.213e-05/2.201, allocations: 56.08 kB / 0.7422 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.887e-05/2.201, allocations: 40.84 kB / 0.7422 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006941/2.201, allocations: 0.5564 MB / 0.7428 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/2.201, allocations: 0 / 0.7428 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/2.201, allocations: 14.69 kB / 0.7428 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/2.201, allocations: 25.5 kB / 0.7428 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004535/2.202, allocations: 346.2 kB / 0.7431 GB, free: 15.16 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.03461/2.236, allocations: 19.37 MB / 0.7621 GB, free: 0.7969 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007048/2.237, allocations: 328.4 kB / 0.7624 GB, free: 0.7422 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002413/2.237, allocations: 196.8 kB / 0.7626 GB, free: 0.7188 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.283/2.52, allocations: 150.4 MB / 0.9095 GB, free: 14.99 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004622/2.521, allocations: 286.8 kB / 0.9098 GB, free: 14.77 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=71): time 2.064e-06/2.521, allocations: 0 / 0.9098 GB, free: 14.77 MB / 0.7637 GB Notification: Performance of matching and sorting (n=71): time 0.003074/2.524, allocations: 1.111 MB / 0.9108 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.876e-05/2.524, allocations: 166.1 kB / 0.911 GB, free: 13.69 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/2.524, allocations: 359.4 kB / 0.9113 GB, free: 13.4 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/2.524, allocations: 29.45 kB / 0.9114 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/2.525, allocations: 228.4 kB / 0.9116 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/2.525, allocations: 231.4 kB / 0.9118 GB, free: 13 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/2.525, allocations: 93.72 kB / 0.9119 GB, free: 12.93 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001225/2.525, allocations: 359.7 kB / 0.9122 GB, free: 12.59 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/2.525, allocations: 148.2 kB / 0.9124 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002811/2.526, allocations: 249.8 kB / 0.9126 GB, free: 12.3 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003803/2.529, allocations: 1.167 MB / 0.9138 GB, free: 11.34 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/2.529, allocations: 0 / 0.9138 GB, free: 11.34 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.000948/2.53, allocations: 0.658 MB / 0.9144 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/2.53, allocations: 33.7 kB / 0.9144 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/2.53, allocations: 4 kB / 0.9144 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/2.533, allocations: 0.6534 MB / 0.9151 GB, free: 10.24 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/2.533, allocations: 30.23 kB / 0.9151 GB, free: 10.22 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009554/2.534, allocations: 0.9274 MB / 0.916 GB, free: 9.438 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003072/2.534, allocations: 62.14 kB / 0.9161 GB, free: 9.383 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.036e-05/2.534, allocations: 16 kB / 0.9161 GB, free: 9.367 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.0002541/2.534, allocations: 209.7 kB / 0.9163 GB, free: 9.184 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.807e-05/2.534, allocations: 43.44 kB / 0.9163 GB, free: 9.141 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/2.536, allocations: 1.145 MB / 0.9174 GB, free: 8.309 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009082/2.537, allocations: 0.6937 MB / 0.9181 GB, free: 7.828 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/2.537, allocations: 0 / 0.9181 GB, free: 7.828 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/2.537, allocations: 3.984 kB / 0.9181 GB, free: 7.824 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/2.539, allocations: 1.695 MB / 0.9198 GB, free: 6.547 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/2.539, allocations: 3.844 kB / 0.9198 GB, free: 6.547 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/2.539, allocations: 54.8 kB / 0.9198 GB, free: 6.496 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002012/2.541, allocations: 0.6824 MB / 0.9205 GB, free: 5.883 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/2.541, allocations: 12.2 kB / 0.9205 GB, free: 5.879 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009405/2.542, allocations: 0.9908 MB / 0.9215 GB, free: 5.051 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/2.542, allocations: 0 / 0.9215 GB, free: 5.051 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009625/2.543, allocations: 0.8236 MB / 0.9223 GB, free: 4.43 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/2.543, allocations: 165.7 kB / 0.9224 GB, free: 4.266 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.848e-05/2.544, allocations: 14.91 kB / 0.9225 GB, free: 4.258 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/2.544, allocations: 26.83 kB / 0.9225 GB, free: 4.238 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.842e-05/2.544, allocations: 32.02 kB / 0.9225 GB, free: 4.211 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/2.544, allocations: 19.36 kB / 0.9225 GB, free: 4.195 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003026/2.544, allocations: 317.5 kB / 0.9228 GB, free: 3.957 MB / 0.7637 GB Notification: Performance of sort global known variables: time 8.02e-07/2.544, allocations: 0 / 0.9228 GB, free: 3.957 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003753/2.548, allocations: 1.548 MB / 0.9243 GB, free: 2.52 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.006427/2.554, allocations: 2.353 MB / 0.9266 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001216/2.556, allocations: 0.6889 MB / 0.9273 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/2.556, allocations: 0 / 0.9273 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006104/2.556, allocations: 370.1 kB / 0.9277 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/2.557, allocations: 239.6 kB / 0.9279 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/2.559, allocations: 1.32 MB / 0.9292 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/2.56, allocations: 0.8987 MB / 0.9301 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002187/2.56, allocations: 54.33 kB / 0.9301 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.207e-05/2.56, allocations: 40 kB / 0.9302 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/2.56, allocations: 0 / 0.9302 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of Templates: time 0.2166/2.776, allocations: 53.4 MB / 0.9823 GB, free: 457 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve.pipe 2>&1)