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.8195/0.8195, allocations: 150.8 MB / 166.6 MB, free: 11.17 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 15.98 kB / 204.7 MB, free: 6.168 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1571, allocations: 31.33 MB / 236 MB, free: 3.867 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.Book.SimpleExamples.PressureLoss.TestSwitchValve): time 1.612/1.769, allocations: 292.9 MB / 0.5165 GB, free: 9.062 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4663/2.235, allocations: 187.7 MB / 0.6998 GB, free: 1.621 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003574/2.236, allocations: 6.938 kB / 0.6998 GB, free: 1.617 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.000381/2.236, allocations: 113.8 kB / 0.6999 GB, free: 1.617 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0003365/2.236, allocations: 164.6 kB / 0.7001 GB, free: 1.617 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.02264/2.259, allocations: 8.7 MB / 0.7086 GB, free: 1.434 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0009483/2.26, allocations: 0.6575 MB / 0.7092 GB, free: 1.434 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002744/2.26, allocations: 234.4 kB / 0.7094 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/2.261, allocations: 258.1 kB / 0.7097 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002645/2.261, allocations: 243.5 kB / 0.7099 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.633e-05/2.261, allocations: 27.06 kB / 0.71 GB, free: 1.395 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03227/2.293, allocations: 20.11 MB / 0.7296 GB, free: 13.61 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001714/2.293, allocations: 88.52 kB / 0.7297 GB, free: 13.6 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0004318/2.294, allocations: 269.9 kB / 0.7299 GB, free: 13.58 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.02355/2.317, allocations: 10.06 MB / 0.7398 GB, free: 9.484 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/2.317, allocations: 3.812 kB / 0.7398 GB, free: 9.484 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.175e-06/2.317, allocations: 3.938 kB / 0.7398 GB, free: 9.48 MB / 0.573 GB Notification: Performance of Transformations before backend: time 9.508e-06/2.317, allocations: 0 / 0.7398 GB, free: 9.48 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.00621/2.324, allocations: 1.959 MB / 0.7417 GB, free: 8.207 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/2.324, allocations: 9.656 kB / 0.7417 GB, free: 8.207 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/2.324, allocations: 64.53 kB / 0.7417 GB, free: 8.176 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/2.324, allocations: 325 kB / 0.7421 GB, free: 7.898 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.999e-05/2.324, allocations: 57.22 kB / 0.7421 GB, free: 7.867 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.775e-05/2.324, allocations: 44.91 kB / 0.7422 GB, free: 7.863 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007104/2.325, allocations: 0.5484 MB / 0.7427 GB, free: 7.625 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/2.325, allocations: 2.875 kB / 0.7427 GB, free: 7.625 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/2.325, allocations: 20.44 kB / 0.7427 GB, free: 7.621 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.62e-05/2.325, allocations: 27.12 kB / 0.7427 GB, free: 7.613 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00045/2.326, allocations: 344.6 kB / 0.7431 GB, free: 7.566 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.03948/2.365, allocations: 19.37 MB / 0.762 GB, free: 7.281 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006769/2.366, allocations: 334 kB / 0.7623 GB, free: 7.078 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/2.366, allocations: 194.2 kB / 0.7625 GB, free: 6.977 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3145/2.681, allocations: 150.4 MB / 0.9094 GB, free: 2.547 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005327/2.681, allocations: 297.1 kB / 0.9097 GB, free: 2.23 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=71): time 2.134e-06/2.681, allocations: 0 / 0.9097 GB, free: 2.23 MB / 0.7448 GB Notification: Performance of matching and sorting (n=71): time 0.003136/2.684, allocations: 1.116 MB / 0.9108 GB, free: 1.086 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.669e-05/2.684, allocations: 162.2 kB / 0.9109 GB, free: 0.8906 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/2.685, allocations: 353.6 kB / 0.9113 GB, free: 0.5391 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/2.685, allocations: 29.7 kB / 0.9113 GB, free: 0.5039 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/2.685, allocations: 228.1 kB / 0.9115 GB, free: 284 kB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/2.685, allocations: 227.6 kB / 0.9117 GB, free: 60 kB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/2.685, allocations: 102 kB / 0.9118 GB, free: 15.95 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.000127/2.685, allocations: 356 kB / 0.9122 GB, free: 15.6 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/2.686, allocations: 153.2 kB / 0.9123 GB, free: 15.45 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/2.686, allocations: 244 kB / 0.9126 GB, free: 15.18 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003693/2.69, allocations: 1.168 MB / 0.9137 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.397e-06/2.69, allocations: 4 kB / 0.9137 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009973/2.691, allocations: 0.6592 MB / 0.9143 GB, free: 13.27 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 3.859e-05/2.691, allocations: 33.7 kB / 0.9144 GB, free: 13.23 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/2.691, allocations: 3.938 kB / 0.9144 GB, free: 13.23 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002159/2.693, allocations: 0.6579 MB / 0.915 GB, free: 12.57 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/2.693, allocations: 19.98 kB / 0.915 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009851/2.694, allocations: 0.9265 MB / 0.9159 GB, free: 11.59 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/2.694, allocations: 59.33 kB / 0.916 GB, free: 11.54 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.549e-05/2.694, allocations: 20 kB / 0.916 GB, free: 11.52 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.0002859/2.695, allocations: 207.9 kB / 0.9162 GB, free: 11.3 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.555e-05/2.695, allocations: 43.44 kB / 0.9163 GB, free: 11.26 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/2.696, allocations: 1.142 MB / 0.9174 GB, free: 10.04 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0009527/2.697, allocations: 0.6938 MB / 0.918 GB, free: 9.332 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/2.697, allocations: 0 / 0.918 GB, free: 9.332 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/2.697, allocations: 0 / 0.918 GB, free: 9.332 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/2.699, allocations: 1.702 MB / 0.9197 GB, free: 7.582 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/2.699, allocations: 0 / 0.9197 GB, free: 7.582 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001614/2.7, allocations: 51.86 kB / 0.9198 GB, free: 7.531 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001901/2.702, allocations: 0.6713 MB / 0.9204 GB, free: 6.859 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.954e-05/2.702, allocations: 12 kB / 0.9204 GB, free: 6.848 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009242/2.703, allocations: 1.001 MB / 0.9214 GB, free: 5.824 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/2.703, allocations: 128 / 0.9214 GB, free: 5.824 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/2.704, allocations: 1.755 MB / 0.9231 GB, free: 4 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001937/2.705, allocations: 164.3 kB / 0.9233 GB, free: 3.82 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.836e-05/2.705, allocations: 23.78 kB / 0.9233 GB, free: 3.797 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002531/2.705, allocations: 25.06 kB / 0.9233 GB, free: 3.773 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.173e-05/2.705, allocations: 36.39 kB / 0.9234 GB, free: 3.738 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/2.705, allocations: 19.98 kB / 0.9234 GB, free: 3.719 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003149/2.705, allocations: 319.1 kB / 0.9237 GB, free: 3.406 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.31e-07/2.705, allocations: 0 / 0.9237 GB, free: 3.406 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.00402/2.709, allocations: 1.6 MB / 0.9252 GB, free: 1.805 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.007048/2.716, allocations: 2.358 MB / 0.9275 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001316/2.718, allocations: 0.6809 MB / 0.9282 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/2.718, allocations: 0 / 0.9282 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000606/2.718, allocations: 375.3 kB / 0.9286 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/2.72, allocations: 235.1 kB / 0.9288 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/2.722, allocations: 1.718 MB / 0.9305 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004049/2.722, allocations: 0.9143 MB / 0.9314 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.000209/2.722, allocations: 55.17 kB / 0.9314 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.15e-05/2.722, allocations: 43.42 kB / 0.9315 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of SimCode: time 5.51e-07/2.722, allocations: 1.203 kB / 0.9315 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of Templates: time 0.227/2.949, allocations: 53.85 MB / 0.984 GB, free: 431.8 MB / 0.7917 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)