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: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8567/0.8567, allocations: 150.9 MB / 166 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002944, allocations: 15.97 kB / 204 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1418, allocations: 31.32 MB / 235.4 MB, free: 5.434 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.546/1.688, allocations: 293.6 MB / 0.5165 GB, free: 12.91 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1806/1.868, allocations: 187.7 MB / 0.6999 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003524/1.869, allocations: 4 kB / 0.6999 GB, free: 0.8164 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.0004355/1.869, allocations: 104.7 kB / 0.7 GB, free: 0.7148 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003742/1.869, allocations: 170.7 kB / 0.7001 GB, free: 0.5469 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2956/2.165, allocations: 8.677 MB / 0.7086 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009605/2.166, allocations: 0.6552 MB / 0.7092 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005191/2.167, allocations: 238.4 kB / 0.7095 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005953/2.167, allocations: 253.8 kB / 0.7097 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004074/2.168, allocations: 239.9 kB / 0.7099 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.299e-05/2.168, allocations: 30.45 kB / 0.71 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03136/2.199, allocations: 20.06 MB / 0.7296 GB, free: 3.996 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001658/2.199, allocations: 84.12 kB / 0.7296 GB, free: 3.996 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004478/2.2, allocations: 274.6 kB / 0.7299 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02122/2.221, allocations: 10.06 MB / 0.7397 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/2.221, allocations: 3.094 kB / 0.7397 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.304e-06/2.221, allocations: 2.625 kB / 0.7397 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.885e-06/2.221, allocations: 3 kB / 0.7397 GB, free: 1.242 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.00506/2.226, allocations: 1.968 MB / 0.7417 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/2.226, allocations: 10.03 kB / 0.7417 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/2.226, allocations: 62.44 kB / 0.7417 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003748/2.227, allocations: 320.5 kB / 0.742 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.002e-05/2.227, allocations: 64.06 kB / 0.7421 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/2.227, allocations: 44.53 kB / 0.7421 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000697/2.227, allocations: 0.5435 MB / 0.7427 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/2.227, allocations: 2.906 kB / 0.7427 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.402e-05/2.227, allocations: 18.47 kB / 0.7427 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/2.228, allocations: 20.89 kB / 0.7427 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004588/2.228, allocations: 349.7 kB / 0.743 GB, free: 15.38 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.03484/2.263, allocations: 19.38 MB / 0.762 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006877/2.264, allocations: 325.2 kB / 0.7623 GB, free: 0.9609 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000224/2.264, allocations: 193 kB / 0.7625 GB, free: 0.9414 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2875/2.551, allocations: 150.4 MB / 0.9094 GB, free: 15.23 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005003/2.552, allocations: 302.6 kB / 0.9097 GB, free: 15 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=71): time 1.994e-06/2.552, allocations: 0 / 0.9097 GB, free: 15 MB / 0.7637 GB Notification: Performance of matching and sorting (n=71): time 0.003164/2.555, allocations: 1.111 MB / 0.9108 GB, free: 14.12 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.169e-05/2.555, allocations: 162.2 kB / 0.9109 GB, free: 13.92 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/2.555, allocations: 347.3 kB / 0.9112 GB, free: 13.64 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/2.556, allocations: 33.45 kB / 0.9113 GB, free: 13.61 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/2.556, allocations: 231.5 kB / 0.9115 GB, free: 13.43 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.000164/2.556, allocations: 233 kB / 0.9117 GB, free: 13.23 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/2.556, allocations: 97.41 kB / 0.9118 GB, free: 13.16 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001348/2.556, allocations: 361 kB / 0.9122 GB, free: 12.82 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/2.556, allocations: 150.9 kB / 0.9123 GB, free: 12.74 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/2.557, allocations: 241.3 kB / 0.9125 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003931/2.561, allocations: 1.171 MB / 0.9137 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/2.561, allocations: 3.094 kB / 0.9137 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001006/2.562, allocations: 0.6589 MB / 0.9143 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/2.562, allocations: 33.69 kB / 0.9143 GB, free: 11.09 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/2.562, allocations: 4 kB / 0.9144 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002379/2.564, allocations: 0.6423 MB / 0.915 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/2.564, allocations: 30.7 kB / 0.915 GB, free: 10.46 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009759/2.565, allocations: 0.9334 MB / 0.9159 GB, free: 9.676 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003173/2.566, allocations: 55.16 kB / 0.916 GB, free: 9.625 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-05/2.566, allocations: 19.11 kB / 0.916 GB, free: 9.609 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.0002829/2.566, allocations: 210.8 kB / 0.9162 GB, free: 9.422 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.214e-05/2.566, allocations: 43.44 kB / 0.9162 GB, free: 9.379 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001533/2.567, allocations: 1.146 MB / 0.9174 GB, free: 8.543 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009307/2.568, allocations: 0.6973 MB / 0.918 GB, free: 8.062 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/2.568, allocations: 0 / 0.918 GB, free: 8.062 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/2.568, allocations: 3.984 kB / 0.918 GB, free: 8.059 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002413/2.571, allocations: 1.693 MB / 0.9197 GB, free: 6.781 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/2.571, allocations: 0 / 0.9197 GB, free: 6.781 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/2.571, allocations: 59.25 kB / 0.9197 GB, free: 6.73 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002063/2.573, allocations: 0.6735 MB / 0.9204 GB, free: 6.121 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/2.573, allocations: 14.98 kB / 0.9204 GB, free: 6.113 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/2.574, allocations: 1.002 MB / 0.9214 GB, free: 5.277 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/2.574, allocations: 0 / 0.9214 GB, free: 5.277 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/2.575, allocations: 0.8114 MB / 0.9222 GB, free: 4.668 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002241/2.576, allocations: 169.6 kB / 0.9223 GB, free: 4.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.448e-05/2.576, allocations: 15.38 kB / 0.9224 GB, free: 4.492 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002695/2.576, allocations: 21.3 kB / 0.9224 GB, free: 4.477 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.958e-05/2.576, allocations: 34.58 kB / 0.9224 GB, free: 4.449 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/2.576, allocations: 15.19 kB / 0.9224 GB, free: 4.438 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.00032/2.576, allocations: 320.4 kB / 0.9227 GB, free: 4.195 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.6e-07/2.576, allocations: 0 / 0.9227 GB, free: 4.195 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003911/2.58, allocations: 1.552 MB / 0.9243 GB, free: 2.754 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.007783/2.588, allocations: 2.361 MB / 0.9266 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001324/2.589, allocations: 0.6849 MB / 0.9272 GB, free: 216 kB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/2.589, allocations: 0 / 0.9272 GB, free: 216 kB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0007118/2.59, allocations: 370.4 kB / 0.9276 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/2.591, allocations: 236.3 kB / 0.9278 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/2.593, allocations: 1.324 MB / 0.9291 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/2.594, allocations: 0.8948 MB / 0.93 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002333/2.594, allocations: 55.02 kB / 0.93 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.3e-05/2.594, allocations: 39.98 kB / 0.9301 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/2.594, allocations: 1.094 kB / 0.9301 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of Templates: time 0.223/2.817, allocations: 53.4 MB / 0.9822 GB, free: 457.6 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe 2>&1)