Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8162/0.8162, allocations: 150.8 MB / 166.6 MB, free: 11.13 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002419, allocations: 19.97 kB / 204.7 MB, free: 6.133 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1375, allocations: 31.32 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.SimpleExamples.TestSwitchValve): time 1.566/1.703, allocations: 293.2 MB / 0.5168 GB, free: 8.777 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.4796/2.183, allocations: 195.1 MB / 0.7073 GB, free: 2.598 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004689/2.183, allocations: 8.312 kB / 0.7073 GB, free: 2.598 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.0002248/2.184, allocations: 58.02 kB / 0.7074 GB, free: 2.598 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.000461/2.184, allocations: 200 kB / 0.7076 GB, free: 2.594 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.03074/2.215, allocations: 10.25 MB / 0.7176 GB, free: 2.246 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001338/2.216, allocations: 0.8139 MB / 0.7184 GB, free: 2.238 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004667/2.217, allocations: 401.6 kB / 0.7187 GB, free: 2.184 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004589/2.217, allocations: 316.7 kB / 0.7191 GB, free: 2.184 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004148/2.218, allocations: 375.6 kB / 0.7194 GB, free: 2.184 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 8.178e-05/2.218, allocations: 57.62 kB / 0.7195 GB, free: 2.184 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04389/2.262, allocations: 22.42 MB / 0.7414 GB, free: 15 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003319/2.262, allocations: 163 kB / 0.7415 GB, free: 14.97 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0005541/2.262, allocations: 383.6 kB / 0.7419 GB, free: 14.95 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.03621/2.299, allocations: 11.84 MB / 0.7534 GB, free: 10.41 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 1.144e-05/2.299, allocations: 0 / 0.7534 GB, free: 10.41 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.663e-06/2.299, allocations: 0 / 0.7534 GB, free: 10.41 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.134e-05/2.299, allocations: 0 / 0.7534 GB, free: 10.41 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.00801/2.307, allocations: 2.411 MB / 0.7558 GB, free: 8.094 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/2.307, allocations: 12.03 kB / 0.7558 GB, free: 8.082 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/2.307, allocations: 87.47 kB / 0.7559 GB, free: 7.996 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005233/2.308, allocations: 444.1 kB / 0.7563 GB, free: 7.594 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.818e-05/2.308, allocations: 79.7 kB / 0.7564 GB, free: 7.508 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.661e-05/2.308, allocations: 72 kB / 0.7565 GB, free: 7.438 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/2.309, allocations: 0.7085 MB / 0.7572 GB, free: 6.711 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/2.309, allocations: 6.625 kB / 0.7572 GB, free: 6.707 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/2.309, allocations: 28 kB / 0.7572 GB, free: 6.68 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/2.309, allocations: 20 kB / 0.7572 GB, free: 6.66 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009369/2.31, allocations: 0.6036 MB / 0.7578 GB, free: 6.059 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.01096/2.321, allocations: 7.48 MB / 0.7651 GB, free: 13.72 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000841/2.322, allocations: 387.1 kB / 0.7655 GB, free: 13.34 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/2.322, allocations: 145.4 kB / 0.7656 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6543/2.976, allocations: 221.8 MB / 0.9822 GB, free: 393.2 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004611/2.977, allocations: 228.6 kB / 0.9824 GB, free: 393.1 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=38): time 2.745e-06/2.977, allocations: 0 / 0.9824 GB, free: 393.1 MB / 0.7761 GB Notification: Performance of matching and sorting (n=38): time 0.002734/2.979, allocations: 0.9074 MB / 0.9833 GB, free: 392.9 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/2.979, allocations: 113.5 kB / 0.9834 GB, free: 392.8 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004728/2.98, allocations: 457.8 kB / 0.9838 GB, free: 392.6 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/2.98, allocations: 29.52 kB / 0.9838 GB, free: 392.6 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/2.98, allocations: 339 kB / 0.9842 GB, free: 392.5 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 7.066e-05/2.98, allocations: 128.7 kB / 0.9843 GB, free: 392.4 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/2.98, allocations: 116.6 kB / 0.9844 GB, free: 392.4 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 6.949e-05/2.98, allocations: 355.5 kB / 0.9847 GB, free: 392.1 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/2.981, allocations: 126.1 kB / 0.9849 GB, free: 392.1 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002613/2.981, allocations: 247.5 kB / 0.9851 GB, free: 391.9 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004743/2.986, allocations: 1.309 MB / 0.9864 GB, free: 391.6 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/2.986, allocations: 0 / 0.9864 GB, free: 391.6 MB / 0.7761 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008982/2.987, allocations: 0.585 MB / 0.9869 GB, free: 391.5 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/2.987, allocations: 45.66 kB / 0.987 GB, free: 391.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/2.987, allocations: 4.312 kB / 0.987 GB, free: 391.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00208/2.989, allocations: 379.5 kB / 0.9874 GB, free: 391.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/2.989, allocations: 76.05 kB / 0.9874 GB, free: 391.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000594/2.99, allocations: 0.7384 MB / 0.9881 GB, free: 390.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/2.99, allocations: 59.7 kB / 0.9882 GB, free: 390.9 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/2.99, allocations: 25.34 kB / 0.9882 GB, free: 390.9 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.0002628/2.99, allocations: 223.1 kB / 0.9884 GB, free: 390.7 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.878e-05/2.99, allocations: 51.55 kB / 0.9885 GB, free: 390.7 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/2.991, allocations: 0.6005 MB / 0.9891 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/2.991, allocations: 3.812 kB / 0.9891 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/2.992, allocations: 0.5625 kB / 0.9891 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/2.992, allocations: 2.25 kB / 0.9891 GB, free: 390.6 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005449/2.992, allocations: 0.5706 MB / 0.9896 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/2.992, allocations: 0 / 0.9896 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/2.992, allocations: 40.09 kB / 0.9897 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/2.994, allocations: 352.5 kB / 0.99 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.033e-05/2.994, allocations: 12.81 kB / 0.99 GB, free: 390.4 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000535/2.995, allocations: 0.7488 MB / 0.9908 GB, free: 389.8 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/2.995, allocations: 7.312 kB / 0.9908 GB, free: 389.8 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/2.996, allocations: 1.404 MB / 0.9921 GB, free: 389.1 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001948/2.996, allocations: 170.7 kB / 0.9923 GB, free: 389 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.59e-05/2.996, allocations: 18.53 kB / 0.9923 GB, free: 389 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/2.997, allocations: 9.062 kB / 0.9923 GB, free: 389 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.082e-05/2.997, allocations: 37.58 kB / 0.9924 GB, free: 389 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.61e-05/2.997, allocations: 14.44 kB / 0.9924 GB, free: 389 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003264/2.997, allocations: 325.9 kB / 0.9927 GB, free: 388.9 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.81e-07/2.997, allocations: 3.312 kB / 0.9927 GB, free: 388.9 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.005171/3.002, allocations: 1.956 MB / 0.9946 GB, free: 388.8 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.007865/3.01, allocations: 2.942 MB / 0.9975 GB, free: 388.5 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0008295/3.011, allocations: 431.8 kB / 0.9979 GB, free: 388.4 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/3.011, allocations: 4.125 kB / 0.9979 GB, free: 388.4 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003675/3.011, allocations: 251.9 kB / 0.9981 GB, free: 388.3 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005692/3.012, allocations: 104.6 kB / 0.9982 GB, free: 388.3 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/3.014, allocations: 1.46 MB / 0.9997 GB, free: 387.5 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/3.014, allocations: 0.8908 MB / 1.001 GB, free: 386.8 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0002755/3.014, allocations: 84.44 kB / 1.001 GB, free: 386.7 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.372e-05/3.014, allocations: 42.8 kB / 1.001 GB, free: 386.7 MB / 0.7761 GB Notification: Performance of SimCode: time 2.2e-07/3.014, allocations: 3.969 kB / 1.001 GB, free: 386.7 MB / 0.7761 GB Notification: Performance of Templates: time 0.05784/3.072, allocations: 56.44 MB / 1.056 GB, free: 338.6 MB / 0.7761 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.pipe 2>&1)