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.7828/0.7828, allocations: 150.8 MB / 166.6 MB, free: 11.14 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002514/0.0002515, allocations: 15.98 kB / 204.7 MB, free: 6.156 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1435, allocations: 31.33 MB / 236 MB, free: 3.895 MB / 186.7 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.587/1.73, allocations: 293 MB / 0.5166 GB, free: 9.008 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.54/2.27, allocations: 187.7 MB / 0.6999 GB, free: 1.551 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004468/2.271, allocations: 5.344 kB / 0.6999 GB, free: 1.551 MB / 0.5573 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.0004608/2.271, allocations: 111.8 kB / 0.7 GB, free: 1.547 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003962/2.272, allocations: 167.2 kB / 0.7002 GB, free: 1.547 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02578/2.298, allocations: 8.687 MB / 0.7087 GB, free: 1.375 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0009883/2.299, allocations: 0.6643 MB / 0.7093 GB, free: 1.375 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004205/2.299, allocations: 239.8 kB / 0.7095 GB, free: 1.332 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004638/2.299, allocations: 256.6 kB / 0.7098 GB, free: 1.328 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002617/2.3, allocations: 247.5 kB / 0.71 GB, free: 1.328 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.747e-05/2.3, allocations: 25.81 kB / 0.71 GB, free: 1.328 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04144/2.341, allocations: 20.13 MB / 0.7297 GB, free: 13.58 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.000227/2.342, allocations: 81.97 kB / 0.7298 GB, free: 13.56 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0005341/2.342, allocations: 269 kB / 0.73 GB, free: 13.55 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02891/2.371, allocations: 10.07 MB / 0.7399 GB, free: 9.441 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/2.371, allocations: 0 / 0.7399 GB, free: 9.441 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.713e-06/2.371, allocations: 0 / 0.7399 GB, free: 9.441 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.907e-05/2.371, allocations: 2.688 kB / 0.7399 GB, free: 9.441 MB / 0.573 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.006208/2.377, allocations: 1.961 MB / 0.7418 GB, free: 8.172 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/2.377, allocations: 9.469 kB / 0.7418 GB, free: 8.172 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/2.377, allocations: 60.89 kB / 0.7419 GB, free: 8.141 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/2.378, allocations: 330.9 kB / 0.7422 GB, free: 7.859 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.476e-05/2.378, allocations: 55.39 kB / 0.7422 GB, free: 7.828 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.245e-05/2.378, allocations: 41.34 kB / 0.7423 GB, free: 7.824 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007995/2.379, allocations: 0.5458 MB / 0.7428 GB, free: 7.59 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/2.379, allocations: 0 / 0.7428 GB, free: 7.59 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.569e-05/2.379, allocations: 18.5 kB / 0.7428 GB, free: 7.59 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.19e-05/2.379, allocations: 23.42 kB / 0.7428 GB, free: 7.586 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004808/2.379, allocations: 348.5 kB / 0.7432 GB, free: 7.531 MB / 0.573 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.04136/2.421, allocations: 19.39 MB / 0.7621 GB, free: 7.285 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008008/2.422, allocations: 321.2 kB / 0.7624 GB, free: 7.09 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000254/2.422, allocations: 194.2 kB / 0.7626 GB, free: 6.992 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3203/2.742, allocations: 150.5 MB / 0.9095 GB, free: 2.473 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005639/2.743, allocations: 294 kB / 0.9098 GB, free: 2.16 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=71): time 2.395e-06/2.743, allocations: 0 / 0.9098 GB, free: 2.16 MB / 0.7448 GB Notification: Performance of matching and sorting (n=71): time 0.003235/2.746, allocations: 1.105 MB / 0.9109 GB, free: 1.027 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.09e-05/2.746, allocations: 174.2 kB / 0.9111 GB, free: 0.8203 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000409/2.747, allocations: 345.6 kB / 0.9114 GB, free: 488 kB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/2.747, allocations: 30.91 kB / 0.9114 GB, free: 452 kB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/2.747, allocations: 231.2 kB / 0.9116 GB, free: 216 kB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/2.747, allocations: 224.3 kB / 0.9119 GB, free: 0 / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/2.747, allocations: 105.9 kB / 0.912 GB, free: 15.89 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001414/2.747, allocations: 354.8 kB / 0.9123 GB, free: 15.54 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/2.748, allocations: 153.3 kB / 0.9124 GB, free: 15.39 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/2.748, allocations: 240 kB / 0.9127 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003756/2.752, allocations: 1.175 MB / 0.9138 GB, free: 13.88 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/2.752, allocations: 1.203 kB / 0.9138 GB, free: 13.88 MB / 0.7605 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001044/2.753, allocations: 0.6599 MB / 0.9145 GB, free: 13.21 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/2.753, allocations: 34.95 kB / 0.9145 GB, free: 13.17 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/2.753, allocations: 7.938 kB / 0.9145 GB, free: 13.16 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00221/2.755, allocations: 0.6449 MB / 0.9151 GB, free: 12.51 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/2.755, allocations: 32.48 kB / 0.9152 GB, free: 12.48 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009631/2.756, allocations: 0.9248 MB / 0.9161 GB, free: 11.53 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/2.756, allocations: 59.34 kB / 0.9161 GB, free: 11.47 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/2.756, allocations: 17.19 kB / 0.9161 GB, free: 11.45 MB / 0.7605 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.0002667/2.757, allocations: 213.2 kB / 0.9163 GB, free: 11.23 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.541e-05/2.757, allocations: 47.38 kB / 0.9164 GB, free: 11.19 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/2.758, allocations: 1.134 MB / 0.9175 GB, free: 9.977 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009326/2.759, allocations: 0.7006 MB / 0.9182 GB, free: 9.266 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/2.759, allocations: 0 / 0.9182 GB, free: 9.266 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/2.759, allocations: 3.984 kB / 0.9182 GB, free: 9.262 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/2.761, allocations: 1.691 MB / 0.9198 GB, free: 7.516 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/2.762, allocations: 3.938 kB / 0.9198 GB, free: 7.512 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/2.762, allocations: 60.03 kB / 0.9199 GB, free: 7.453 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001969/2.764, allocations: 0.6707 MB / 0.9206 GB, free: 6.781 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/2.764, allocations: 19.98 kB / 0.9206 GB, free: 6.762 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009429/2.765, allocations: 0.987 MB / 0.9215 GB, free: 5.75 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/2.765, allocations: 1.203 kB / 0.9215 GB, free: 5.75 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/2.767, allocations: 1.755 MB / 0.9233 GB, free: 3.93 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/2.767, allocations: 164.3 kB / 0.9234 GB, free: 3.75 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.771e-05/2.767, allocations: 19.84 kB / 0.9234 GB, free: 3.73 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/2.767, allocations: 23.86 kB / 0.9235 GB, free: 3.707 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.785e-05/2.767, allocations: 36.39 kB / 0.9235 GB, free: 3.672 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/2.767, allocations: 11.98 kB / 0.9235 GB, free: 3.66 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003241/2.768, allocations: 319.1 kB / 0.9238 GB, free: 3.348 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.4e-07/2.768, allocations: 0 / 0.9238 GB, free: 3.348 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.004137/2.772, allocations: 1.604 MB / 0.9254 GB, free: 1.742 MB / 0.7605 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.006781/2.779, allocations: 2.362 MB / 0.9277 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.00127/2.78, allocations: 0.6804 MB / 0.9283 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/2.78, allocations: 0 / 0.9283 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0006139/2.78, allocations: 368.3 kB / 0.9287 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/2.782, allocations: 237.4 kB / 0.9289 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/2.784, allocations: 1.726 MB / 0.9306 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005311/2.784, allocations: 0.9116 MB / 0.9315 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0002615/2.785, allocations: 59.27 kB / 0.9316 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.779e-05/2.785, allocations: 35.44 kB / 0.9316 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of SimCode: time 6.61e-07/2.785, allocations: 0 / 0.9316 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of Templates: time 0.2442/3.029, allocations: 53.84 MB / 0.9842 GB, free: 431.6 MB / 0.7917 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)