Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.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.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestThreeWayValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestThreeWayValve",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.8604/0.8604, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.98e-05/1.982e-05, allocations: 0 / 204.9 MB, free: 9.945 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2187, allocations: 31.98 MB / 236.8 MB, free: 5.402 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.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve): time 1.716/1.934, allocations: 296.5 MB / 0.5209 GB, free: 11.19 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04393/1.978, allocations: 37.9 MB / 0.5579 GB, free: 5.426 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003275/1.979, allocations: 11.94 kB / 0.5579 GB, free: 5.414 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004269/1.979, allocations: 159.1 kB / 0.558 GB, free: 5.258 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005107/1.98, allocations: 266.1 kB / 0.5583 GB, free: 4.996 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02146/2.001, allocations: 7.59 MB / 0.5657 GB, free: 13.4 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001295/2.003, allocations: 0.9843 MB / 0.5667 GB, free: 12.41 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004863/2.003, allocations: 383.6 kB / 0.567 GB, free: 12.04 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004059/2.003, allocations: 334.3 kB / 0.5674 GB, free: 11.71 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003114/2.004, allocations: 310.2 kB / 0.5677 GB, free: 11.41 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.44e-05/2.004, allocations: 24 kB / 0.5677 GB, free: 11.39 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0285/2.032, allocations: 17.81 MB / 0.5851 GB, free: 9.551 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002275/2.033, allocations: 123.3 kB / 0.5852 GB, free: 9.43 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005581/2.033, allocations: 415.4 kB / 0.5856 GB, free: 9.016 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0239/2.057, allocations: 9.032 MB / 0.5944 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/2.057, allocations: 0 / 0.5944 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.394e-06/2.057, allocations: 4 kB / 0.5944 GB, free: 15.95 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/2.057, allocations: 0 / 0.5944 GB, free: 15.95 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.006655/2.064, allocations: 1.832 MB / 0.5962 GB, free: 14.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.563e-05/2.064, allocations: 12.03 kB / 0.5962 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001713/2.064, allocations: 127.5 kB / 0.5963 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/2.064, allocations: 94.88 kB / 0.5964 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006413/2.065, allocations: 448.1 kB / 0.5968 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.118e-05/2.065, allocations: 53.31 kB / 0.5969 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.976e-05/2.065, allocations: 64 kB / 0.597 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/2.066, allocations: 0.8606 MB / 0.5978 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/2.066, allocations: 7.938 kB / 0.5978 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/2.067, allocations: 28 kB / 0.5978 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.825e-05/2.067, allocations: 39.97 kB / 0.5979 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009182/2.067, allocations: 0.5552 MB / 0.5984 GB, free: 11.68 MB / 494.1 MB 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.05791/2.125, allocations: 29.77 MB / 0.6275 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008208/2.126, allocations: 388 kB / 0.6279 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004447/2.127, allocations: 283 kB / 0.6281 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4033/2.53, allocations: 77.92 MB / 0.7042 GB, free: 128.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/2.53, allocations: 37.53 kB / 0.7043 GB, free: 128.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=91): time 2.985e-06/2.53, allocations: 2.469 kB / 0.7043 GB, free: 128.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=91): time 0.0036/2.534, allocations: 1.299 MB / 0.7055 GB, free: 128.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/2.534, allocations: 82.27 kB / 0.7056 GB, free: 128.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007537/2.534, allocations: 0.5119 MB / 0.7061 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/2.535, allocations: 32.48 kB / 0.7061 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002315/2.535, allocations: 336 kB / 0.7065 GB, free: 128.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/2.535, allocations: 293 kB / 0.7067 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.661e-05/2.535, allocations: 82.12 kB / 0.7068 GB, free: 128 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001028/2.535, allocations: 375.8 kB / 0.7072 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003919/2.536, allocations: 211.9 kB / 0.7074 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004616/2.536, allocations: 369.8 kB / 0.7077 GB, free: 127.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009213/2.537, allocations: 0.6455 MB / 0.7084 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/2.537, allocations: 1.375 kB / 0.7084 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001701/2.539, allocations: 0.9029 MB / 0.7092 GB, free: 127.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/2.539, allocations: 6.938 kB / 0.7093 GB, free: 127.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/2.539, allocations: 5.719 kB / 0.7093 GB, free: 127.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003188/2.542, allocations: 0.9892 MB / 0.7102 GB, free: 127.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/2.542, allocations: 35.61 kB / 0.7103 GB, free: 127.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/2.543, allocations: 1.095 MB / 0.7113 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004082/2.544, allocations: 78.78 kB / 0.7114 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-05/2.544, allocations: 21.61 kB / 0.7114 GB, free: 126.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 14 (PuitsP2.C.a,threeWayValve.PerteDP1.C2.b,threeWayValve.PerteDP1.C1.a,threeWayValve.VolumeA1.Cs2.b,threeWayValve.VolumeA1.Cs1.b,threeWayValve.VolumeA1.Ce2.a,threeWayValve.VolumeA1.Ce1.a,threeWayValve.Valve2.C2.b,threeWayValve.Valve2.C1.a,threeWayValve.Valve1.C2.b,threeWayValve.Valve1.C1.a,PuitsP1.C.a,SourceP1.C.b,threeWayValve.VolumeA1.Ce2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(7,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003309/2.544, allocations: 227.4 kB / 0.7116 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.671e-05/2.544, allocations: 66.28 kB / 0.7117 GB, free: 126.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002112/2.546, allocations: 2.152 MB / 0.7138 GB, free: 126.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001125/2.548, allocations: 0.8184 MB / 0.7146 GB, free: 126.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/2.548, allocations: 3.562 kB / 0.7146 GB, free: 126.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/2.548, allocations: 5.625 kB / 0.7146 GB, free: 126.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002718/2.55, allocations: 2.148 MB / 0.7167 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/2.55, allocations: 6.859 kB / 0.7167 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/2.551, allocations: 86.19 kB / 0.7168 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/2.552, allocations: 0.7325 MB / 0.7175 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/2.552, allocations: 14.28 kB / 0.7175 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009809/2.553, allocations: 1.039 MB / 0.7185 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/2.553, allocations: 7.062 kB / 0.7185 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/2.555, allocations: 1.295 MB / 0.7198 GB, free: 124.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/2.555, allocations: 242.9 kB / 0.72 GB, free: 124.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.185e-05/2.555, allocations: 12.88 kB / 0.7201 GB, free: 124.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/2.556, allocations: 33.5 kB / 0.7201 GB, free: 124.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.277e-05/2.556, allocations: 33.44 kB / 0.7201 GB, free: 124.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/2.556, allocations: 22.77 kB / 0.7201 GB, free: 124.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004447/2.556, allocations: 465.6 kB / 0.7206 GB, free: 124.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.556, allocations: 0 / 0.7206 GB, free: 124.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003146/2.559, allocations: 1.313 MB / 0.7219 GB, free: 124.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (threeWayValve.VolumeA1.h) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(6,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006675/2.566, allocations: 3.526 MB / 0.7253 GB, free: 123.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001514/2.568, allocations: 0.8667 MB / 0.7262 GB, free: 123.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/2.568, allocations: 0 / 0.7262 GB, free: 123.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007391/2.568, allocations: 410 kB / 0.7265 GB, free: 123.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001679/2.57, allocations: 332.4 kB / 0.7269 GB, free: 123.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008779/2.579, allocations: 7.189 MB / 0.7339 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003466/2.579, allocations: 1.012 MB / 0.7349 GB, free: 117.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002934/2.58, allocations: 60.27 kB / 0.7349 GB, free: 117.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002798/2.58, allocations: 345 kB / 0.7353 GB, free: 117.5 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/2.58, allocations: 0 / 0.7353 GB, free: 117.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06874/2.649, allocations: 60.59 MB / 0.7944 GB, free: 59.98 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001319/2.649, allocations: 264.9 kB / 0.7947 GB, free: 59.72 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.434/7.082, allocations: 0 / 0.7947 GB, free: 59.72 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestThreeWayValve_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestThreeWayValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve.pipe 2>&1)