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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealSwitchValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8423/0.8423, allocations: 150.9 MB / 166 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003139/0.0003139, allocations: 15.97 kB / 204.1 MB, free: 10 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1823/0.1826, allocations: 31.34 MB / 235.4 MB, free: 5.438 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.548/1.731, allocations: 294.7 MB / 0.5178 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4244/2.155, allocations: 195.1 MB / 0.7082 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002978/2.155, allocations: 12.22 kB / 0.7083 GB, free: 3.758 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.0001658/2.155, allocations: 54.39 kB / 0.7083 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003713/2.156, allocations: 190.1 kB / 0.7085 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02378/2.18, allocations: 10.21 MB / 0.7185 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007026/2.18, allocations: 0.7578 MB / 0.7192 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003377/2.181, allocations: 401 kB / 0.7196 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002873/2.181, allocations: 296.7 kB / 0.7199 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002564/2.181, allocations: 361.8 kB / 0.7202 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.466e-05/2.181, allocations: 54.72 kB / 0.7203 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0312/2.213, allocations: 22.41 MB / 0.7422 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002231/2.213, allocations: 152.5 kB / 0.7423 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004511/2.213, allocations: 358.5 kB / 0.7426 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02275/2.236, allocations: 11.83 MB / 0.7542 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/2.236, allocations: 0 / 0.7542 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.352e-06/2.236, allocations: 0 / 0.7542 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.248e-06/2.236, allocations: 0 / 0.7542 GB, free: 14.48 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.005198/2.241, allocations: 2.391 MB / 0.7565 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/2.241, allocations: 10.06 kB / 0.7565 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.888e-05/2.241, allocations: 122.3 kB / 0.7567 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/2.242, allocations: 84.94 kB / 0.7567 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004092/2.242, allocations: 410.2 kB / 0.7571 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.011e-05/2.242, allocations: 81.11 kB / 0.7572 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.295e-05/2.242, allocations: 66.59 kB / 0.7573 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000861/2.243, allocations: 0.6827 MB / 0.7579 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/2.243, allocations: 4.203 kB / 0.7579 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.404e-05/2.243, allocations: 26.72 kB / 0.758 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/2.243, allocations: 19.8 kB / 0.758 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007649/2.244, allocations: 0.5619 MB / 0.7585 GB, free: 12.23 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.008311/2.252, allocations: 7.408 MB / 0.7658 GB, free: 6.051 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006639/2.253, allocations: 352.1 kB / 0.7661 GB, free: 5.992 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/2.253, allocations: 129.9 kB / 0.7662 GB, free: 5.973 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5373/2.79, allocations: 221.8 MB / 0.9828 GB, free: 450.9 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003995/2.791, allocations: 209.3 kB / 0.983 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=35): time 1.913e-06/2.791, allocations: 0 / 0.983 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35): time 0.002376/2.793, allocations: 0.8276 MB / 0.9838 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/2.793, allocations: 107.1 kB / 0.9839 GB, free: 450.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/2.794, allocations: 439.8 kB / 0.9843 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/2.794, allocations: 33.02 kB / 0.9844 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/2.794, allocations: 330.6 kB / 0.9847 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.45e-05/2.794, allocations: 117.7 kB / 0.9848 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/2.794, allocations: 109.7 kB / 0.9849 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 6.619e-05/2.794, allocations: 357.2 kB / 0.9852 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/2.794, allocations: 111 kB / 0.9853 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002552/2.795, allocations: 233.8 kB / 0.9856 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003974/2.799, allocations: 1.149 MB / 0.9867 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/2.799, allocations: 1 kB / 0.9867 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.000882/2.8, allocations: 0.5586 MB / 0.9872 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/2.8, allocations: 34.95 kB / 0.9873 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/2.8, allocations: 4.438 kB / 0.9873 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/2.801, allocations: 291.1 kB / 0.9875 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/2.801, allocations: 71.03 kB / 0.9876 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004597/2.802, allocations: 0.7039 MB / 0.9883 GB, free: 448.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/2.802, allocations: 57.52 kB / 0.9883 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.35e-05/2.802, allocations: 23.45 kB / 0.9884 GB, free: 448.7 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.0002269/2.802, allocations: 221 kB / 0.9886 GB, free: 448.6 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.647e-05/2.803, allocations: 49.09 kB / 0.9886 GB, free: 448.6 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/2.804, allocations: 0.54 MB / 0.9892 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/2.804, allocations: 3.188 kB / 0.9892 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/2.804, allocations: 3.75 kB / 0.9892 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/2.804, allocations: 3.344 kB / 0.9892 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004699/2.804, allocations: 0.5355 MB / 0.9897 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/2.804, allocations: 3.938 kB / 0.9897 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/2.804, allocations: 42.08 kB / 0.9897 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001214/2.805, allocations: 265.7 kB / 0.99 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/2.805, allocations: 11.75 kB / 0.99 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004344/2.806, allocations: 0.7141 MB / 0.9907 GB, free: 447.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/2.806, allocations: 0 / 0.9907 GB, free: 447.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007857/2.807, allocations: 484.2 kB / 0.9912 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/2.807, allocations: 174.2 kB / 0.9913 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.489e-05/2.807, allocations: 6.531 kB / 0.9913 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/2.807, allocations: 12.45 kB / 0.9913 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.994e-05/2.807, allocations: 26.12 kB / 0.9914 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/2.807, allocations: 12.31 kB / 0.9914 GB, free: 447.5 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002602/2.807, allocations: 320.6 kB / 0.9917 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/2.807, allocations: 0 / 0.9917 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004014/2.812, allocations: 1.88 MB / 0.9935 GB, free: 447.3 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.009007/2.821, allocations: 3.862 MB / 0.9973 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006549/2.821, allocations: 401.7 kB / 0.9977 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/2.821, allocations: 0 / 0.9977 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003173/2.822, allocations: 227 kB / 0.9979 GB, free: 446.4 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/2.822, allocations: 104.2 kB / 0.998 GB, free: 446.4 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006525/2.829, allocations: 5.012 MB / 1.003 GB, free: 444 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/2.829, allocations: 0.8721 MB / 1.004 GB, free: 443.3 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000268/2.829, allocations: 83.05 kB / 1.004 GB, free: 443.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/2.829, allocations: 205.2 kB / 1.004 GB, free: 443.3 MB / 0.8106 GB Notification: Performance of SimCode: time 4.81e-07/2.829, allocations: 0 / 1.004 GB, free: 443.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.834/5.663, allocations: 63.17 MB / 1.066 GB, free: 396.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/5.663, allocations: 292.1 kB / 1.066 GB, free: 396.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.622/10.29, allocations: 5.562 kB / 1.066 GB, free: 396.1 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealSwitchValve.pipe 2>&1)