Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.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.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7884/0.7884, allocations: 150.9 MB / 166 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002951, allocations: 11.98 kB / 204 MB, free: 10.18 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1419, allocations: 31.33 MB / 235.3 MB, free: 5.457 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.TestIdealSwitchValve): time 1.537/1.678, allocations: 293.5 MB / 0.5164 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1895/1.868, allocations: 187.7 MB / 0.6997 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004581/1.868, allocations: 8 kB / 0.6997 GB, free: 1.008 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/IdealSwitchValve.mo:23:3-25: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/IdealSwitchValve.mo:26:3-28: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.0004899/1.869, allocations: 109.1 kB / 0.6998 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005163/1.87, allocations: 138.9 kB / 0.6999 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3088/2.178, allocations: 8.678 MB / 0.7084 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007312/2.179, allocations: 0.5831 MB / 0.709 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003012/2.179, allocations: 223.6 kB / 0.7092 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000351/2.18, allocations: 226.8 kB / 0.7094 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/2.18, allocations: 223.4 kB / 0.7096 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.745e-05/2.18, allocations: 25.88 kB / 0.7097 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.031/2.211, allocations: 20.07 MB / 0.7293 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000149/2.211, allocations: 78.83 kB / 0.7293 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003835/2.212, allocations: 243.7 kB / 0.7296 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02235/2.234, allocations: 10.02 MB / 0.7393 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/2.234, allocations: 0 / 0.7393 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.964e-06/2.234, allocations: 2.125 kB / 0.7393 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.357e-05/2.234, allocations: 0 / 0.7393 GB, free: 1.328 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.005334/2.239, allocations: 1.908 MB / 0.7412 GB, free: 96 kB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/2.239, allocations: 10.19 kB / 0.7412 GB, free: 96 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/2.24, allocations: 59.61 kB / 0.7413 GB, free: 64 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/2.24, allocations: 312.9 kB / 0.7416 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.941e-05/2.24, allocations: 55.98 kB / 0.7416 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/2.24, allocations: 44.41 kB / 0.7417 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007069/2.241, allocations: 0.5085 MB / 0.7422 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/2.241, allocations: 3 kB / 0.7422 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/2.241, allocations: 19.03 kB / 0.7422 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.117e-05/2.241, allocations: 17.86 kB / 0.7422 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004755/2.241, allocations: 314.1 kB / 0.7425 GB, free: 15.51 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.03514/2.277, allocations: 19.2 MB / 0.7613 GB, free: 1.277 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006741/2.277, allocations: 307.7 kB / 0.7616 GB, free: 1.223 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/2.278, allocations: 169.9 kB / 0.7617 GB, free: 1.203 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2785/2.556, allocations: 150.4 MB / 0.9086 GB, free: 15.77 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004377/2.556, allocations: 264.8 kB / 0.9089 GB, free: 15.55 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=60): time 2.334e-06/2.557, allocations: 3.844 kB / 0.9089 GB, free: 15.55 MB / 0.7637 GB Notification: Performance of matching and sorting (n=60): time 0.002435/2.559, allocations: 0.9332 MB / 0.9098 GB, free: 14.81 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/2.559, allocations: 165.3 kB / 0.9099 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000351/2.559, allocations: 343.5 kB / 0.9103 GB, free: 14.34 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/2.559, allocations: 33.52 kB / 0.9103 GB, free: 14.3 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/2.56, allocations: 221.5 kB / 0.9105 GB, free: 14.12 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/2.56, allocations: 197.1 kB / 0.9107 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/2.56, allocations: 85.69 kB / 0.9108 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001166/2.56, allocations: 352.1 kB / 0.9111 GB, free: 13.56 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/2.56, allocations: 133.5 kB / 0.9113 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/2.56, allocations: 227.5 kB / 0.9115 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003288/2.564, allocations: 1.041 MB / 0.9125 GB, free: 12.44 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/2.564, allocations: 0 / 0.9125 GB, free: 12.44 MB / 0.7637 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008755/2.565, allocations: 0.5912 MB / 0.9131 GB, free: 12.03 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/2.565, allocations: 33.64 kB / 0.9131 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/2.565, allocations: 4 kB / 0.9131 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001807/2.566, allocations: 474.7 kB / 0.9136 GB, free: 11.56 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/2.567, allocations: 27.98 kB / 0.9136 GB, free: 11.54 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008406/2.567, allocations: 0.8474 MB / 0.9144 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/2.568, allocations: 47.19 kB / 0.9145 GB, free: 10.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/2.568, allocations: 19.17 kB / 0.9145 GB, free: 10.74 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002359/2.568, allocations: 194.9 kB / 0.9147 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.443e-05/2.568, allocations: 47.44 kB / 0.9147 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/2.569, allocations: 0.9278 MB / 0.9156 GB, free: 9.805 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000758/2.57, allocations: 0.5533 MB / 0.9161 GB, free: 9.414 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/2.57, allocations: 0 / 0.9161 GB, free: 9.414 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/2.57, allocations: 128 / 0.9161 GB, free: 9.414 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/2.572, allocations: 1.433 MB / 0.9175 GB, free: 8.301 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/2.572, allocations: 0 / 0.9175 GB, free: 8.301 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/2.572, allocations: 35.61 kB / 0.9176 GB, free: 8.27 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/2.574, allocations: 480.3 kB / 0.918 GB, free: 7.848 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.621e-05/2.574, allocations: 10.94 kB / 0.918 GB, free: 7.844 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007782/2.575, allocations: 0.8933 MB / 0.9189 GB, free: 7.074 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/2.575, allocations: 0 / 0.9189 GB, free: 7.074 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/2.576, allocations: 0.6993 MB / 0.9196 GB, free: 6.527 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/2.576, allocations: 146.4 kB / 0.9197 GB, free: 6.379 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.282e-05/2.576, allocations: 19.28 kB / 0.9198 GB, free: 6.363 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/2.576, allocations: 18.89 kB / 0.9198 GB, free: 6.352 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.407e-05/2.576, allocations: 35.27 kB / 0.9198 GB, free: 6.32 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/2.576, allocations: 15.62 kB / 0.9198 GB, free: 6.309 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003334/2.577, allocations: 308.3 kB / 0.9201 GB, free: 6.074 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.8e-07/2.577, allocations: 1.203 kB / 0.9201 GB, free: 6.074 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003851/2.581, allocations: 1.527 MB / 0.9216 GB, free: 4.656 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 (26): * Single equations (assignments): 24 * 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,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00745/2.588, allocations: 2.348 MB / 0.9239 GB, free: 2.648 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001036/2.589, allocations: 0.5584 MB / 0.9245 GB, free: 2.215 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/2.589, allocations: 0 / 0.9245 GB, free: 2.215 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0005135/2.59, allocations: 307.7 kB / 0.9247 GB, free: 1.984 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/2.591, allocations: 189.7 kB / 0.9249 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/2.592, allocations: 1.124 MB / 0.926 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/2.593, allocations: 0.868 MB / 0.9269 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002036/2.593, allocations: 50.78 kB / 0.9269 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.014e-05/2.593, allocations: 31.44 kB / 0.927 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/2.593, allocations: 0 / 0.927 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of Templates: time 0.2266/2.819, allocations: 51.69 MB / 0.9774 GB, free: 458.2 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.pipe 2>&1)