Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.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.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7863/0.7863, allocations: 150.9 MB / 166 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.000276, allocations: 11.98 kB / 204 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1374, allocations: 31.32 MB / 235.4 MB, free: 5.43 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.Fluid.Examples.SimpleExamples.TestIdealSwitchValve): time 1.555/1.692, allocations: 293.8 MB / 0.5167 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4854/2.178, allocations: 195.1 MB / 0.7072 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003574/2.178, allocations: 9.719 kB / 0.7072 GB, free: 3.883 MB / 0.5762 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/IdealSwitchValve.mo:22:3-24:37: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/IdealSwitchValve.mo:25:3-26:53: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.0001902/2.178, allocations: 55.42 kB / 0.7073 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003959/2.179, allocations: 189.5 kB / 0.7075 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02586/2.205, allocations: 10.21 MB / 0.7174 GB, free: 3.719 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000835/2.205, allocations: 0.7565 MB / 0.7182 GB, free: 3.719 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003782/2.206, allocations: 397.4 kB / 0.7186 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003042/2.206, allocations: 307.2 kB / 0.7188 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002746/2.206, allocations: 354.6 kB / 0.7192 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.951e-05/2.206, allocations: 52.88 kB / 0.7192 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03555/2.242, allocations: 22.41 MB / 0.7411 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002516/2.242, allocations: 155.1 kB / 0.7413 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004869/2.243, allocations: 360.7 kB / 0.7416 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02613/2.269, allocations: 11.82 MB / 0.7532 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/2.269, allocations: 0 / 0.7532 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.442e-06/2.269, allocations: 2.562 kB / 0.7532 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.85e-05/2.269, allocations: 0 / 0.7532 GB, free: 14.62 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 172 * Number of variables: 172 Notification: Performance of Generate backend data structure: time 0.005526/2.275, allocations: 2.393 MB / 0.7555 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/2.275, allocations: 10.06 kB / 0.7555 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/2.275, allocations: 81.75 kB / 0.7556 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/2.275, allocations: 430.8 kB / 0.756 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.217e-05/2.275, allocations: 77.95 kB / 0.7561 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.996e-05/2.275, allocations: 65.16 kB / 0.7561 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009249/2.276, allocations: 0.678 MB / 0.7568 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/2.276, allocations: 3.156 kB / 0.7568 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/2.276, allocations: 26.44 kB / 0.7568 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/2.276, allocations: 15.66 kB / 0.7568 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008362/2.277, allocations: 0.5664 MB / 0.7574 GB, free: 12.42 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.009061/2.286, allocations: 7.409 MB / 0.7646 GB, free: 6.238 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007439/2.287, allocations: 365.1 kB / 0.765 GB, free: 6.176 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/2.287, allocations: 121.2 kB / 0.7651 GB, free: 6.16 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.577/2.864, allocations: 221.8 MB / 0.9817 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004047/2.865, allocations: 212.8 kB / 0.9819 GB, free: 451.1 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=35): time 2.705e-06/2.865, allocations: 0 / 0.9819 GB, free: 451.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35): time 0.002484/2.867, allocations: 0.83 MB / 0.9827 GB, free: 450.9 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/2.867, allocations: 111.4 kB / 0.9828 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004888/2.868, allocations: 440.3 kB / 0.9832 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/2.868, allocations: 31.36 kB / 0.9832 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/2.868, allocations: 323.9 kB / 0.9835 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.809e-05/2.868, allocations: 123.8 kB / 0.9837 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/2.868, allocations: 109.9 kB / 0.9838 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 5.966e-05/2.868, allocations: 353 kB / 0.9841 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/2.868, allocations: 118.3 kB / 0.9842 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/2.869, allocations: 233.7 kB / 0.9844 GB, free: 450 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004174/2.873, allocations: 1.143 MB / 0.9855 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/2.873, allocations: 3.562 kB / 0.9855 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009003/2.874, allocations: 0.556 MB / 0.9861 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/2.874, allocations: 35.5 kB / 0.9861 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/2.874, allocations: 4.594 kB / 0.9861 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/2.875, allocations: 296.4 kB / 0.9864 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/2.876, allocations: 69.88 kB / 0.9865 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00048/2.876, allocations: 0.7048 MB / 0.9872 GB, free: 449 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002948/2.877, allocations: 48.92 kB / 0.9872 GB, free: 449 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.292e-05/2.877, allocations: 22.25 kB / 0.9872 GB, free: 449 MB / 0.8106 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: 11 (SourceP1.C.ftype,$PRE.pulse.T0,PuitsP1.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 (43): * Single equations (assignments): 41 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002544/2.877, allocations: 226.9 kB / 0.9875 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.18e-05/2.877, allocations: 53.22 kB / 0.9875 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/2.878, allocations: 0.533 MB / 0.988 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/2.878, allocations: 9.203 kB / 0.988 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/2.878, allocations: 0 / 0.988 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/2.878, allocations: 2.484 kB / 0.988 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004824/2.878, allocations: 0.5411 MB / 0.9886 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/2.878, allocations: 7.312 kB / 0.9886 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/2.879, allocations: 36.08 kB / 0.9886 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/2.88, allocations: 256.4 kB / 0.9888 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/2.88, allocations: 10.81 kB / 0.9889 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004554/2.88, allocations: 0.7198 MB / 0.9896 GB, free: 448 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/2.88, allocations: 0 / 0.9896 GB, free: 448 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008375/2.881, allocations: 484.7 kB / 0.99 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/2.881, allocations: 175.3 kB / 0.9902 GB, free: 447.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.175e-05/2.881, allocations: 11.48 kB / 0.9902 GB, free: 447.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/2.882, allocations: 10.92 kB / 0.9902 GB, free: 447.7 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.63e-05/2.882, allocations: 26.2 kB / 0.9902 GB, free: 447.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/2.882, allocations: 16.86 kB / 0.9903 GB, free: 447.7 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002693/2.882, allocations: 319.9 kB / 0.9906 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/2.882, allocations: 0 / 0.9906 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004092/2.886, allocations: 1.872 MB / 0.9924 GB, free: 447.5 MB / 0.8106 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 (20): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.007317/2.893, allocations: 2.936 MB / 0.9953 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007931/2.894, allocations: 400.6 kB / 0.9956 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/2.894, allocations: 1.719 kB / 0.9956 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003425/2.895, allocations: 226.9 kB / 0.9959 GB, free: 447.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005279/2.895, allocations: 100 kB / 0.9959 GB, free: 447.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/2.897, allocations: 1.165 MB / 0.9971 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/2.897, allocations: 0.8699 MB / 0.9979 GB, free: 445.8 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002608/2.897, allocations: 82.98 kB / 0.998 GB, free: 445.8 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.62e-05/2.897, allocations: 42.48 kB / 0.9981 GB, free: 445.8 MB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/2.897, allocations: 0 / 0.9981 GB, free: 445.8 MB / 0.8106 GB Notification: Performance of Templates: time 0.0555/2.953, allocations: 55.6 MB / 1.052 GB, free: 408.2 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe 2>&1)