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.7262/0.7262, allocations: 150.8 MB / 166.1 MB, free: 15.14 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.706e-05/1.707e-05, allocations: 7.938 kB / 204.9 MB, free: 9.578 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1274, allocations: 31.99 MB / 236.9 MB, free: 5.328 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.SimpleExamples.TestSwitchValve): time 1.383/1.51, allocations: 295.8 MB / 0.5201 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4167/1.927, allocations: 192.7 MB / 0.7084 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003811/1.927, allocations: 10.25 kB / 0.7084 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/1.927, allocations: 59.47 kB / 0.7084 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004311/1.928, allocations: 199.2 kB / 0.7086 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02267/1.95, allocations: 10.46 MB / 0.7188 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006749/1.951, allocations: 0.8119 MB / 0.7196 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003253/1.951, allocations: 358.3 kB / 0.72 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002616/1.952, allocations: 275.5 kB / 0.7202 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/1.952, allocations: 324.4 kB / 0.7206 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.092e-05/1.952, allocations: 35.59 kB / 0.7206 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02951/1.982, allocations: 22.51 MB / 0.7426 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001763/1.982, allocations: 128.2 kB / 0.7427 GB, free: 1.867 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004142/1.982, allocations: 369.6 kB / 0.743 GB, free: 1.816 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02008/2.002, allocations: 11.72 MB / 0.7545 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/2.002, allocations: 0 / 0.7545 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.094e-06/2.002, allocations: 0 / 0.7545 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.757e-06/2.002, allocations: 0 / 0.7545 GB, free: 13.42 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.004685/2.007, allocations: 2.278 MB / 0.7567 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/2.007, allocations: 11.25 kB / 0.7567 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/2.007, allocations: 114.7 kB / 0.7568 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/2.007, allocations: 86.91 kB / 0.7569 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004364/2.008, allocations: 445.4 kB / 0.7574 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.566e-05/2.008, allocations: 82.64 kB / 0.7574 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.661e-05/2.008, allocations: 66.16 kB / 0.7575 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008852/2.009, allocations: 0.7103 MB / 0.7582 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/2.009, allocations: 2.906 kB / 0.7582 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/2.009, allocations: 31.44 kB / 0.7582 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/2.009, allocations: 17.78 kB / 0.7582 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007853/2.01, allocations: 0.6041 MB / 0.7588 GB, free: 11.14 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.008331/2.018, allocations: 7.494 MB / 0.7661 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00067/2.019, allocations: 378.8 kB / 0.7665 GB, free: 4.875 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/2.019, allocations: 148.3 kB / 0.7666 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5764/2.595, allocations: 223.7 MB / 0.9851 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005821/2.596, allocations: 221.9 kB / 0.9853 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 3.155e-06/2.596, allocations: 0 / 0.9853 GB, free: 451.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.003066/2.599, allocations: 0.9255 MB / 0.9863 GB, free: 451.2 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/2.599, allocations: 107.6 kB / 0.9864 GB, free: 451.1 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005023/2.6, allocations: 460 kB / 0.9868 GB, free: 451 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/2.6, allocations: 31.02 kB / 0.9868 GB, free: 450.9 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/2.6, allocations: 338.5 kB / 0.9871 GB, free: 450.8 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.319e-05/2.6, allocations: 124.3 kB / 0.9873 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.679e-05/2.6, allocations: 58.16 kB / 0.9873 GB, free: 450.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 6.702e-05/2.6, allocations: 355.4 kB / 0.9877 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/2.6, allocations: 126.7 kB / 0.9878 GB, free: 450.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/2.601, allocations: 246.1 kB / 0.988 GB, free: 450.2 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004753/2.605, allocations: 1.368 MB / 0.9893 GB, free: 450 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/2.605, allocations: 4.219 kB / 0.9894 GB, free: 450 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008921/2.606, allocations: 0.5867 MB / 0.9899 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/2.606, allocations: 38.61 kB / 0.99 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/2.606, allocations: 2.781 kB / 0.99 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002067/2.608, allocations: 443.8 kB / 0.9904 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/2.609, allocations: 78.55 kB / 0.9905 GB, free: 449.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005283/2.609, allocations: 0.7365 MB / 0.9912 GB, free: 449.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/2.609, allocations: 54.52 kB / 0.9912 GB, free: 449.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/2.61, allocations: 29.62 kB / 0.9913 GB, free: 449.2 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.0002457/2.61, allocations: 225.1 kB / 0.9915 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.378e-05/2.61, allocations: 52.8 kB / 0.9915 GB, free: 449.1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/2.611, allocations: 0.6043 MB / 0.9921 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/2.611, allocations: 6.156 kB / 0.9921 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/2.611, allocations: 2.156 kB / 0.9921 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/2.611, allocations: 0.9375 kB / 0.9921 GB, free: 448.9 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004982/2.611, allocations: 0.5634 MB / 0.9927 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/2.611, allocations: 2.875 kB / 0.9927 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/2.612, allocations: 36.12 kB / 0.9927 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001786/2.613, allocations: 400.8 kB / 0.9931 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.756e-05/2.613, allocations: 13.44 kB / 0.9931 GB, free: 448.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004934/2.614, allocations: 0.7463 MB / 0.9938 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/2.614, allocations: 3.312 kB / 0.9938 GB, free: 448.2 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007702/2.615, allocations: 0.5308 MB / 0.9944 GB, free: 448 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/2.615, allocations: 181.2 kB / 0.9945 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.106e-05/2.615, allocations: 9.031 kB / 0.9945 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/2.615, allocations: 16.14 kB / 0.9946 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/2.615, allocations: 35.47 kB / 0.9946 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/2.615, allocations: 13.89 kB / 0.9946 GB, free: 447.9 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002714/2.616, allocations: 328.5 kB / 0.9949 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/2.616, allocations: 0 / 0.9949 GB, free: 447.8 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003819/2.619, allocations: 1.881 MB / 0.9968 GB, free: 447.7 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.008297/2.628, allocations: 3.838 MB / 1.001 GB, free: 446.9 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006759/2.628, allocations: 438.4 kB / 1.001 GB, free: 446.9 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/2.628, allocations: 0 / 1.001 GB, free: 446.9 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003594/2.629, allocations: 245.1 kB / 1.001 GB, free: 446.8 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004985/2.629, allocations: 108.6 kB / 1.001 GB, free: 446.8 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006278/2.636, allocations: 5.232 MB / 1.006 GB, free: 444.3 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/2.636, allocations: 0.8908 MB / 1.007 GB, free: 443.6 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000273/2.636, allocations: 91.33 kB / 1.007 GB, free: 443.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/2.636, allocations: 208.1 kB / 1.008 GB, free: 443.5 MB / 0.8106 GB Notification: Performance of SimCode: time 3.1e-07/2.636, allocations: 0 / 1.008 GB, free: 443.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.256/6.893, allocations: 62.48 MB / 1.069 GB, free: 396.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/6.893, allocations: 283.6 kB / 1.069 GB, free: 395.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.93/11.82, allocations: 0 / 1.069 GB, free: 395.7 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)