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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_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.8433/0.8433, allocations: 150.8 MB / 166.1 MB, free: 15.18 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.145e-05/2.156e-05, allocations: 4 kB / 204.9 MB, free: 9.562 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1843, allocations: 31.98 MB / 236.9 MB, free: 5.477 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. 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.563/1.747, allocations: 295.7 MB / 0.5201 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4497/2.197, allocations: 192.8 MB / 0.7083 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004738/2.197, allocations: 12.44 kB / 0.7083 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002178/2.198, allocations: 55.3 kB / 0.7084 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006726/2.198, allocations: 201.1 kB / 0.7086 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02571/2.224, allocations: 10.46 MB / 0.7188 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008123/2.225, allocations: 0.8006 MB / 0.7196 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003797/2.225, allocations: 364 kB / 0.7199 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002943/2.225, allocations: 268.1 kB / 0.7202 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/2.226, allocations: 335.4 kB / 0.7205 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.528e-05/2.226, allocations: 35.5 kB / 0.7205 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03221/2.258, allocations: 22.51 MB / 0.7425 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002254/2.258, allocations: 137.6 kB / 0.7426 GB, free: 1.961 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004349/2.259, allocations: 363.5 kB / 0.743 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02323/2.282, allocations: 11.71 MB / 0.7544 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/2.282, allocations: 0 / 0.7544 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.964e-06/2.282, allocations: 0 / 0.7544 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.257e-06/2.282, allocations: 0 / 0.7544 GB, free: 13.46 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.005146/2.287, allocations: 2.28 MB / 0.7566 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/2.287, allocations: 12.28 kB / 0.7566 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/2.287, allocations: 113.7 kB / 0.7568 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/2.287, allocations: 83.16 kB / 0.7568 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004637/2.288, allocations: 443.4 kB / 0.7573 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.493e-05/2.288, allocations: 82.33 kB / 0.7573 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.355e-05/2.288, allocations: 73.19 kB / 0.7574 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009413/2.289, allocations: 0.7138 MB / 0.7581 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/2.289, allocations: 0 / 0.7581 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.923e-05/2.289, allocations: 27.53 kB / 0.7581 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/2.289, allocations: 17.44 kB / 0.7581 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008387/2.29, allocations: 0.6002 MB / 0.7587 GB, free: 11.19 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.009056/2.299, allocations: 7.491 MB / 0.7661 GB, free: 4.988 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007218/2.3, allocations: 395.6 kB / 0.7664 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002065/2.3, allocations: 140.1 kB / 0.7666 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6207/2.921, allocations: 223.7 MB / 0.9851 GB, free: 451.8 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004497/2.921, allocations: 222.6 kB / 0.9853 GB, free: 451.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.294e-06/2.921, allocations: 1.375 kB / 0.9853 GB, free: 451.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.002885/2.924, allocations: 0.9198 MB / 0.9862 GB, free: 451.5 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/2.924, allocations: 111.5 kB / 0.9863 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004604/2.925, allocations: 458.9 kB / 0.9867 GB, free: 451.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/2.925, allocations: 33.45 kB / 0.9867 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/2.925, allocations: 336.5 kB / 0.9871 GB, free: 451.1 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.775e-05/2.925, allocations: 130.2 kB / 0.9872 GB, free: 451 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.35e-05/2.925, allocations: 53.81 kB / 0.9872 GB, free: 451 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 6.417e-05/2.925, allocations: 353.8 kB / 0.9876 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/2.925, allocations: 128.6 kB / 0.9877 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002829/2.926, allocations: 250.7 kB / 0.9879 GB, free: 450.6 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004989/2.931, allocations: 1.368 MB / 0.9893 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/2.931, allocations: 0.5625 kB / 0.9893 GB, free: 450.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009436/2.932, allocations: 0.5881 MB / 0.9898 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/2.932, allocations: 36.14 kB / 0.9899 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/2.932, allocations: 2.75 kB / 0.9899 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/2.934, allocations: 446.2 kB / 0.9903 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/2.934, allocations: 80.48 kB / 0.9904 GB, free: 450.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005596/2.935, allocations: 0.7333 MB / 0.9911 GB, free: 449.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003373/2.935, allocations: 60.97 kB / 0.9912 GB, free: 449.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.882e-05/2.935, allocations: 27.95 kB / 0.9912 GB, free: 449.5 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.0002925/2.935, allocations: 226.2 kB / 0.9914 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.453e-05/2.935, allocations: 48.28 kB / 0.9915 GB, free: 449.4 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001096/2.936, allocations: 0.6019 MB / 0.992 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/2.937, allocations: 3.031 kB / 0.992 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/2.937, allocations: 0 / 0.992 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/2.937, allocations: 1.875 kB / 0.992 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005165/2.937, allocations: 0.5737 MB / 0.9926 GB, free: 449 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/2.937, allocations: 0 / 0.9926 GB, free: 449 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001385/2.937, allocations: 38.39 kB / 0.9926 GB, free: 449 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/2.939, allocations: 403.2 kB / 0.993 GB, free: 449 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/2.939, allocations: 9.672 kB / 0.993 GB, free: 449 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005243/2.94, allocations: 0.7548 MB / 0.9938 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/2.94, allocations: 0 / 0.9938 GB, free: 448.5 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008056/2.94, allocations: 0.5246 MB / 0.9943 GB, free: 448.3 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/2.941, allocations: 180 kB / 0.9945 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/2.941, allocations: 12.17 kB / 0.9945 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/2.941, allocations: 16.23 kB / 0.9945 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.384e-05/2.941, allocations: 24.81 kB / 0.9945 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/2.941, allocations: 16.97 kB / 0.9945 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002957/2.941, allocations: 327.9 kB / 0.9948 GB, free: 448.1 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/2.941, allocations: 0 / 0.9948 GB, free: 448.1 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004165/2.946, allocations: 1.883 MB / 0.9967 GB, free: 448 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.008831/2.954, allocations: 3.843 MB / 1 GB, free: 447.2 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008166/2.955, allocations: 426.9 kB / 1.001 GB, free: 447.2 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/2.955, allocations: 2.125 kB / 1.001 GB, free: 447.2 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003853/2.956, allocations: 244.5 kB / 1.001 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005977/2.956, allocations: 112.3 kB / 1.001 GB, free: 447.1 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006729/2.963, allocations: 5.252 MB / 1.006 GB, free: 444.6 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/2.963, allocations: 0.8805 MB / 1.007 GB, free: 443.9 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002976/2.964, allocations: 82.42 kB / 1.007 GB, free: 443.9 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/2.964, allocations: 205.7 kB / 1.007 GB, free: 443.8 MB / 0.8106 GB Notification: Performance of SimCode: time 5.41e-07/2.964, allocations: 0 / 1.007 GB, free: 443.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0841/3.048, allocations: 62.51 MB / 1.068 GB, free: 396.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/3.048, allocations: 305 kB / 1.069 GB, free: 395.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.818/7.866, allocations: 0 / 1.069 GB, free: 395.8 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe 2>&1)