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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSwitchValve",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.7474/0.7474, allocations: 150.9 MB / 166 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.000285, allocations: 23.97 kB / 204.1 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1258, allocations: 31.33 MB / 235.4 MB, free: 5.449 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.TestSwitchValve): time 1.454/1.58, allocations: 294.9 MB / 0.5179 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4431/2.023, allocations: 195.1 MB / 0.7084 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000458/2.024, allocations: 9.312 kB / 0.7084 GB, free: 3.73 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/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.0002897/2.024, allocations: 57.45 kB / 0.7084 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006698/2.025, allocations: 196.8 kB / 0.7086 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02602/2.051, allocations: 10.24 MB / 0.7186 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007809/2.052, allocations: 0.8062 MB / 0.7194 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003672/2.052, allocations: 407.3 kB / 0.7198 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/2.052, allocations: 311.8 kB / 0.7201 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/2.053, allocations: 375.7 kB / 0.7205 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.766e-05/2.053, allocations: 58 kB / 0.7205 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03153/2.084, allocations: 22.41 MB / 0.7424 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000259/2.085, allocations: 162.9 kB / 0.7425 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004928/2.085, allocations: 378.9 kB / 0.7429 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02348/2.109, allocations: 11.85 MB / 0.7545 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/2.109, allocations: 0 / 0.7545 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.232e-06/2.109, allocations: 0 / 0.7545 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.157e-06/2.109, allocations: 4 kB / 0.7545 GB, free: 14.37 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.005897/2.115, allocations: 2.422 MB / 0.7569 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/2.115, allocations: 8.469 kB / 0.7569 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001072/2.115, allocations: 119.2 kB / 0.757 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/2.115, allocations: 92.91 kB / 0.7571 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004678/2.115, allocations: 438.2 kB / 0.7575 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.049e-05/2.115, allocations: 77.64 kB / 0.7576 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.725e-05/2.116, allocations: 66.59 kB / 0.7576 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009213/2.116, allocations: 0.7125 MB / 0.7583 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/2.116, allocations: 1.203 kB / 0.7583 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.803e-05/2.117, allocations: 27.62 kB / 0.7583 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/2.117, allocations: 24.3 kB / 0.7584 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008523/2.117, allocations: 0.6084 MB / 0.759 GB, free: 12.07 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.009001/2.126, allocations: 7.474 MB / 0.7663 GB, free: 5.887 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007341/2.127, allocations: 385.7 kB / 0.7666 GB, free: 5.82 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/2.127, allocations: 142.3 kB / 0.7668 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5319/2.659, allocations: 221.8 MB / 0.9833 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004196/2.66, allocations: 222.3 kB / 0.9835 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.645e-06/2.66, allocations: 0 / 0.9835 GB, free: 449.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.002685/2.662, allocations: 0.914 MB / 0.9844 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/2.662, allocations: 108.5 kB / 0.9845 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000494/2.663, allocations: 452.6 kB / 0.985 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/2.663, allocations: 34.42 kB / 0.985 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/2.663, allocations: 336.8 kB / 0.9853 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.587e-05/2.663, allocations: 128.6 kB / 0.9855 GB, free: 449 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/2.663, allocations: 117.2 kB / 0.9856 GB, free: 449 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 6.108e-05/2.663, allocations: 359.8 kB / 0.9859 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002292/2.664, allocations: 130.1 kB / 0.986 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/2.664, allocations: 240.1 kB / 0.9863 GB, free: 448.6 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004601/2.669, allocations: 1.308 MB / 0.9875 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/2.669, allocations: 7.094 kB / 0.9875 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008609/2.669, allocations: 0.586 MB / 0.9881 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/2.67, allocations: 34.94 kB / 0.9881 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/2.67, allocations: 4.297 kB / 0.9882 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002064/2.672, allocations: 383.2 kB / 0.9885 GB, free: 448.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/2.672, allocations: 73.67 kB / 0.9886 GB, free: 448.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005438/2.672, allocations: 0.7417 MB / 0.9893 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/2.673, allocations: 54.89 kB / 0.9894 GB, free: 447.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/2.673, allocations: 25.69 kB / 0.9894 GB, free: 447.6 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: 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.0002395/2.673, allocations: 228 kB / 0.9896 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.874e-05/2.673, allocations: 54.22 kB / 0.9897 GB, free: 447.4 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/2.674, allocations: 0.6028 MB / 0.9902 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/2.674, allocations: 6.094 kB / 0.9903 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/2.674, allocations: 0.6562 kB / 0.9903 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/2.674, allocations: 4.484 kB / 0.9903 GB, free: 447.3 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005136/2.675, allocations: 0.5609 MB / 0.9908 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.207e-06/2.675, allocations: 0.5 kB / 0.9908 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/2.675, allocations: 41.16 kB / 0.9908 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/2.677, allocations: 349.5 kB / 0.9912 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.685e-05/2.677, allocations: 14.02 kB / 0.9912 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005007/2.677, allocations: 0.7566 MB / 0.9919 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/2.677, allocations: 0.8438 kB / 0.9919 GB, free: 446.5 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007923/2.678, allocations: 0.5263 MB / 0.9924 GB, free: 446.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/2.678, allocations: 183.6 kB / 0.9926 GB, free: 446.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.049e-05/2.678, allocations: 10.97 kB / 0.9926 GB, free: 446.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/2.678, allocations: 10.22 kB / 0.9926 GB, free: 446.3 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.691e-05/2.678, allocations: 28.97 kB / 0.9927 GB, free: 446.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/2.678, allocations: 19.12 kB / 0.9927 GB, free: 446.3 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000269/2.679, allocations: 329.2 kB / 0.993 GB, free: 446.2 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/2.679, allocations: 0.75 kB / 0.993 GB, free: 446.2 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003848/2.683, allocations: 1.882 MB / 0.9948 GB, free: 446.1 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 (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.008622/2.691, allocations: 3.878 MB / 0.9986 GB, free: 445.3 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000689/2.692, allocations: 432.9 kB / 0.999 GB, free: 445.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/2.692, allocations: 0 / 0.999 GB, free: 445.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003657/2.692, allocations: 243.2 kB / 0.9993 GB, free: 445.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004786/2.693, allocations: 113.5 kB / 0.9994 GB, free: 445.2 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006098/2.699, allocations: 5.211 MB / 1.004 GB, free: 442.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/2.699, allocations: 0.8772 MB / 1.005 GB, free: 442.1 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002723/2.699, allocations: 93.88 kB / 1.005 GB, free: 442.1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/2.7, allocations: 206.1 kB / 1.006 GB, free: 442.1 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/2.7, allocations: 0 / 1.006 GB, free: 442.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.72/6.42, allocations: 63.95 MB / 1.068 GB, free: 393.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/6.42, allocations: 288.6 kB / 1.068 GB, free: 393.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.224/11.64, allocations: 0 / 1.068 GB, free: 393.6 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSwitchValve.pipe 2>&1)