Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.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.8124/0.8124, allocations: 150.8 MB / 166.6 MB, free: 11.14 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002554/0.0002555, allocations: 11.97 kB / 204.7 MB, free: 6.148 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1588, allocations: 31.33 MB / 236 MB, free: 3.891 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve): time 1.686/1.845, allocations: 293.1 MB / 0.5167 GB, free: 8.848 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.5981/2.443, allocations: 195.1 MB / 0.7072 GB, free: 2.633 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005534/2.443, allocations: 10.88 kB / 0.7073 GB, free: 2.633 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SwitchValve.mo:36:3-37:55:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SwitchValve.mo:38:3-40:35:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:54:3-55:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/LumpedStraightPipe.mo:56:3-57:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002284/2.444, allocations: 59.11 kB / 0.7073 GB, free: 2.633 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0005537/2.444, allocations: 202.9 kB / 0.7075 GB, free: 2.625 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.03906/2.483, allocations: 10.23 MB / 0.7175 GB, free: 2.285 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001886/2.485, allocations: 0.8186 MB / 0.7183 GB, free: 2.281 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006186/2.486, allocations: 399.2 kB / 0.7187 GB, free: 2.223 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005745/2.486, allocations: 320 kB / 0.719 GB, free: 2.223 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005049/2.487, allocations: 375.1 kB / 0.7193 GB, free: 2.223 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001042/2.487, allocations: 59.16 kB / 0.7194 GB, free: 2.223 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05188/2.539, allocations: 22.42 MB / 0.7413 GB, free: 15.09 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0004839/2.539, allocations: 167 kB / 0.7415 GB, free: 15.06 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0007204/2.54, allocations: 378.5 kB / 0.7418 GB, free: 15.03 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.03818/2.578, allocations: 11.84 MB / 0.7534 GB, free: 10.47 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/2.578, allocations: 0 / 0.7534 GB, free: 10.47 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.472e-06/2.578, allocations: 0 / 0.7534 GB, free: 10.47 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.105e-05/2.578, allocations: 0 / 0.7534 GB, free: 10.47 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.01076/2.589, allocations: 2.417 MB / 0.7557 GB, free: 8.152 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/2.589, allocations: 8.031 kB / 0.7557 GB, free: 8.145 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002223/2.59, allocations: 90.97 kB / 0.7558 GB, free: 8.055 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000739/2.59, allocations: 439.1 kB / 0.7562 GB, free: 7.637 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/2.59, allocations: 87.7 kB / 0.7563 GB, free: 7.543 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.585e-05/2.591, allocations: 64 kB / 0.7564 GB, free: 7.48 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/2.592, allocations: 0.712 MB / 0.7571 GB, free: 6.754 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/2.592, allocations: 0 / 0.7571 GB, free: 6.754 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.545e-05/2.592, allocations: 28 kB / 0.7571 GB, free: 6.727 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/2.592, allocations: 16 kB / 0.7571 GB, free: 6.711 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009415/2.593, allocations: 0.6037 MB / 0.7577 GB, free: 6.109 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.01066/2.603, allocations: 7.488 MB / 0.765 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008573/2.604, allocations: 379.6 kB / 0.7654 GB, free: 13.39 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/2.605, allocations: 149.4 kB / 0.7655 GB, free: 13.24 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7175/3.322, allocations: 221.8 MB / 0.9821 GB, free: 393.3 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005141/3.323, allocations: 227.6 kB / 0.9823 GB, free: 393.3 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=38): time 3.376e-06/3.323, allocations: 0 / 0.9823 GB, free: 393.3 MB / 0.7761 GB Notification: Performance of matching and sorting (n=38): time 0.002827/3.325, allocations: 0.9062 MB / 0.9832 GB, free: 393.1 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/3.326, allocations: 117.2 kB / 0.9833 GB, free: 392.9 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005143/3.326, allocations: 451.8 kB / 0.9837 GB, free: 392.8 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/3.326, allocations: 35.86 kB / 0.9838 GB, free: 392.8 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.000186/3.326, allocations: 330.1 kB / 0.9841 GB, free: 392.7 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 8.869e-05/3.326, allocations: 127.6 kB / 0.9842 GB, free: 392.6 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/3.327, allocations: 122.3 kB / 0.9843 GB, free: 392.6 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 8.28e-05/3.327, allocations: 357.9 kB / 0.9847 GB, free: 392.3 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/3.327, allocations: 130.4 kB / 0.9848 GB, free: 392.3 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002688/3.327, allocations: 244 kB / 0.985 GB, free: 392.1 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004766/3.332, allocations: 1.314 MB / 0.9863 GB, free: 391.8 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/3.332, allocations: 2.156 kB / 0.9863 GB, free: 391.8 MB / 0.7761 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009955/3.333, allocations: 0.5887 MB / 0.9869 GB, free: 391.7 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.212e-05/3.333, allocations: 41.08 kB / 0.9869 GB, free: 391.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/3.333, allocations: 3.156 kB / 0.9869 GB, free: 391.7 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002083/3.335, allocations: 377.5 kB / 0.9873 GB, free: 391.6 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/3.335, allocations: 72.72 kB / 0.9874 GB, free: 391.6 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006435/3.336, allocations: 0.735 MB / 0.9881 GB, free: 391.1 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/3.336, allocations: 64.19 kB / 0.9881 GB, free: 391.1 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.628e-05/3.336, allocations: 28.16 kB / 0.9882 GB, free: 391.1 MB / 0.7761 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: 15 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.C.ftype,$PRE.pulse.T0,PuitsP1.fluid,SwitchValve.fluid,perteDP2.fluid,perteDP1.fluid,pulse.yL.signal,pulse.T0,$whenCondition1,SourceP1.fluid1,perteDP2.C1.diff_on_2,perteDP1.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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 {(3,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0003424/3.337, allocations: 221.3 kB / 0.9884 GB, free: 390.9 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.027e-05/3.337, allocations: 47.41 kB / 0.9884 GB, free: 390.9 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001236/3.338, allocations: 0.601 MB / 0.989 GB, free: 390.8 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/3.338, allocations: 7 kB / 0.989 GB, free: 390.8 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/3.338, allocations: 0.6562 kB / 0.989 GB, free: 390.8 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/3.338, allocations: 1.922 kB / 0.989 GB, free: 390.8 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006398/3.339, allocations: 0.5682 MB / 0.9896 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/3.339, allocations: 0.625 kB / 0.9896 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/3.339, allocations: 35.2 kB / 0.9896 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001742/3.341, allocations: 350 kB / 0.9899 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.553e-05/3.341, allocations: 15.8 kB / 0.99 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005815/3.341, allocations: 0.7568 MB / 0.9907 GB, free: 390 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/3.341, allocations: 1.719 kB / 0.9907 GB, free: 390 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/3.343, allocations: 1.406 MB / 0.9921 GB, free: 389.3 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/3.343, allocations: 172.2 kB / 0.9922 GB, free: 389.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.598e-05/3.343, allocations: 10.47 kB / 0.9922 GB, free: 389.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/3.344, allocations: 12.22 kB / 0.9923 GB, free: 389.2 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.536e-05/3.344, allocations: 40.64 kB / 0.9923 GB, free: 389.1 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/3.344, allocations: 11.55 kB / 0.9923 GB, free: 389.1 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003382/3.344, allocations: 334.3 kB / 0.9926 GB, free: 389.1 MB / 0.7761 GB Notification: Performance of sort global known variables: time 3.9e-07/3.344, allocations: 4 kB / 0.9926 GB, free: 389.1 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.006369/3.35, allocations: 1.952 MB / 0.9945 GB, free: 389 MB / 0.7761 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 (21): * Single equations (assignments): 19 * 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 {(3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01018/3.361, allocations: 2.946 MB / 0.9974 GB, free: 388.7 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001046/3.362, allocations: 436.6 kB / 0.9978 GB, free: 388.6 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/3.362, allocations: 0 / 0.9978 GB, free: 388.6 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0004184/3.362, allocations: 246.5 kB / 0.9981 GB, free: 388.5 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/3.363, allocations: 111.6 kB / 0.9982 GB, free: 388.5 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/3.365, allocations: 1.447 MB / 0.9996 GB, free: 387.6 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003094/3.365, allocations: 0.8914 MB / 1 GB, free: 386.9 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0003081/3.365, allocations: 80.94 kB / 1.001 GB, free: 386.9 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.254e-05/3.365, allocations: 46.64 kB / 1.001 GB, free: 386.9 MB / 0.7761 GB Notification: Performance of SimCode: time 3.81e-07/3.365, allocations: 0 / 1.001 GB, free: 386.9 MB / 0.7761 GB Notification: Performance of Templates: time 0.06349/3.429, allocations: 56.45 MB / 1.056 GB, free: 338.8 MB / 0.7761 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe 2>&1)