Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.828/2.828, allocations: 287.5 MB / 302.4 MB, free: 8.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001308/0.001307, allocations: 170.8 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.185/2.185, allocations: 205.4 MB / 0.6297 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009495/0.0009489, allocations: 97.25 kB / 0.743 GB, free: 6.605 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005249/0.0005251, allocations: 11.38 kB / 0.8659 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2196, allocations: 115.3 MB / 0.9785 GB, free: 28.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.0362/0.2558, allocations: 27.75 MB / 1.006 GB, free: 440 kB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.02586/0.2817, allocations: 10.98 MB / 1.016 GB, free: 5.438 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002044/0.2838, allocations: 39.62 kB / 1.016 GB, free: 5.398 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.2857, allocations: 290 kB / 1.017 GB, free: 5.113 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.005059/0.2908, allocations: 1.078 MB / 1.018 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.004474/0.2953, allocations: 0.9609 MB / 1.019 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.006704/0.302, allocations: 3.504 MB / 1.022 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002556/0.3046, allocations: 1.082 MB / 1.023 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004173/0.3089, allocations: 1.452 MB / 1.024 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005004/0.3139, allocations: 1.546 MB / 1.026 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.001003/0.315, allocations: 68 kB / 1.026 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003818/0.3188, allocations: 0.8578 MB / 1.027 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.001097/0.32, allocations: 330.8 kB / 1.027 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0009133/0.3209, allocations: 253 kB / 1.027 GB, free: 9.957 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.003318/0.3243, allocations: 1.52 MB / 1.029 GB, free: 8.434 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.3244, allocations: 0 / 1.029 GB, free: 8.434 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.436e-06/0.3244, allocations: 0 / 1.029 GB, free: 8.434 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.23e-05/0.3244, allocations: 0 / 1.029 GB, free: 8.434 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003785/0.3282, allocations: 1.34 MB / 1.03 GB, free: 7.043 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.3283, allocations: 8.031 kB / 1.03 GB, free: 7.035 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002824/0.3286, allocations: 98.52 kB / 1.03 GB, free: 6.93 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006684/0.3293, allocations: 146.5 kB / 1.03 GB, free: 6.785 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002926/0.3322, allocations: 0.8486 MB / 1.031 GB, free: 5.895 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.3324, allocations: 85.3 kB / 1.031 GB, free: 5.812 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004491/0.3329, allocations: 116 kB / 1.031 GB, free: 5.699 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.3347, allocations: 0.6473 MB / 1.032 GB, free: 5.023 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.3348, allocations: 0 / 1.032 GB, free: 5.023 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.162e-05/0.3349, allocations: 20 kB / 1.032 GB, free: 5.004 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/0.3349, allocations: 20 kB / 1.032 GB, free: 4.984 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.3365, allocations: 472.8 kB / 1.033 GB, free: 4.523 MB / 0.6511 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.008132/0.3447, allocations: 2.863 MB / 1.035 GB, free: 1.508 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.3458, allocations: 321.1 kB / 1.036 GB, free: 1.188 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.3463, allocations: 157.3 kB / 1.036 GB, free: 1.031 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004226/0.3468, allocations: 344.7 kB / 1.036 GB, free: 0.6211 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.3468, allocations: 38.84 kB / 1.036 GB, free: 0.5742 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=33): time 3.086e-06/0.3468, allocations: 0 / 1.036 GB, free: 0.5742 MB / 0.6511 GB Notification: Performance of matching and sorting (n=33): time 0.002413/0.3492, allocations: 0.5469 MB / 1.037 GB, free: 20 kB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.962e-05/0.3494, allocations: 59.36 kB / 1.037 GB, free: 15.95 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/0.3512, allocations: 0.8752 MB / 1.038 GB, free: 15.05 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0003833/0.3516, allocations: 57.7 kB / 1.038 GB, free: 14.99 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007811/0.3524, allocations: 0.5374 MB / 1.038 GB, free: 14.44 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.3526, allocations: 106.4 kB / 1.038 GB, free: 14.34 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.342e-05/0.3527, allocations: 16 kB / 1.038 GB, free: 14.32 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3528, allocations: 330 kB / 1.039 GB, free: 13.99 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006989/0.3535, allocations: 177.2 kB / 1.039 GB, free: 13.82 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/0.3558, allocations: 1.139 MB / 1.04 GB, free: 12.31 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.3569, allocations: 306.8 kB / 1.04 GB, free: 12.02 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.357, allocations: 4 kB / 1.04 GB, free: 12.01 MB / 0.6667 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002364/0.3593, allocations: 0.6424 MB / 1.041 GB, free: 11.36 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001244/0.3595, allocations: 161.6 kB / 1.041 GB, free: 11.18 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3595, allocations: 0 / 1.041 GB, free: 11.18 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.559e-05/0.3595, allocations: 4 kB / 1.041 GB, free: 11.17 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002704/0.3623, allocations: 243.7 kB / 1.041 GB, free: 10.93 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002352/0.3647, allocations: 2.957 MB / 1.044 GB, free: 7.859 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006547/0.3713, allocations: 0.7535 MB / 1.045 GB, free: 7.105 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002204/0.3715, allocations: 27.98 kB / 1.045 GB, free: 7.078 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.3716, allocations: 0 / 1.045 GB, free: 7.078 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001761/0.3733, allocations: 0.4972 MB / 1.045 GB, free: 6.578 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.3734, allocations: 0 / 1.045 GB, free: 6.578 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.3734, allocations: 4 kB / 1.045 GB, free: 6.574 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.3748, allocations: 167.8 kB / 1.046 GB, free: 6.41 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.906e-05/0.3748, allocations: 7.938 kB / 1.046 GB, free: 6.402 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006433/0.3813, allocations: 0.7341 MB / 1.046 GB, free: 5.668 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.3815, allocations: 24 kB / 1.046 GB, free: 5.645 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009061/0.3824, allocations: 333.8 kB / 1.047 GB, free: 5.309 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003027/0.3827, allocations: 98.72 kB / 1.047 GB, free: 5.211 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001892/0.3846, allocations: 0.5287 MB / 1.047 GB, free: 4.672 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/0.3847, allocations: 4 kB / 1.047 GB, free: 4.668 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3847, allocations: 0 / 1.047 GB, free: 4.668 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.3847, allocations: 0 / 1.047 GB, free: 4.668 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003273/0.388, allocations: 1.267 MB / 1.049 GB, free: 3.332 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-06/0.3881, allocations: 0 / 1.049 GB, free: 3.332 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.3891, allocations: 124 kB / 1.049 GB, free: 3.211 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.218e-05/0.3891, allocations: 4 kB / 1.049 GB, free: 3.207 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.511e-05/0.3892, allocations: 12 kB / 1.049 GB, free: 3.195 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001818/0.391, allocations: 2.942 MB / 1.052 GB, free: 140 kB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.3911, allocations: 8.125 kB / 1.052 GB, free: 132 kB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/0.3927, allocations: 0.5735 MB / 1.052 GB, free: 15.53 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005156/0.3933, allocations: 223.7 kB / 1.052 GB, free: 15.29 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001687/0.3935, allocations: 8 kB / 1.052 GB, free: 15.28 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000971/0.3944, allocations: 63.78 kB / 1.052 GB, free: 15.22 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.3946, allocations: 27.95 kB / 1.052 GB, free: 15.19 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-05/0.3947, allocations: 20 kB / 1.052 GB, free: 15.17 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001205/0.3959, allocations: 0.5844 MB / 1.053 GB, free: 14.58 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.81e-07/0.3959, allocations: 0 / 1.053 GB, free: 14.58 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00227/0.3982, allocations: 0.5306 MB / 1.053 GB, free: 14.05 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002769/0.401, allocations: 1.344 MB / 1.055 GB, free: 12.67 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.004527/0.4056, allocations: 0.8354 MB / 1.056 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.4056, allocations: 4 kB / 1.056 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.4067, allocations: 227.8 kB / 1.056 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00476/0.4115, allocations: 0.4904 MB / 1.056 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0145/0.4261, allocations: 5.035 MB / 1.061 GB, free: 5.859 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007591/0.4269, allocations: 1.022 MB / 1.062 GB, free: 4.809 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001816/0.4287, allocations: 215 kB / 1.062 GB, free: 4.594 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007879/0.4295, allocations: 367.3 kB / 1.063 GB, free: 4.234 MB / 0.6823 GB Notification: Performance of SimCode: time 8.336e-06/0.4296, allocations: 0 / 1.063 GB, free: 4.234 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.71/1.14, allocations: 32.39 MB / 1.094 GB, free: 80.06 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002812/1.14, allocations: 257.7 kB / 1.095 GB, free: 79.7 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.164/5.304, allocations: 0 / 1.095 GB, free: 79.7 MB / 0.6823 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)