Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 107 kB / 16.27 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 186.9 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7055/0.7055, allocations: 122.8 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.91 kB / 0.4912 GB, free: 7.355 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2866, allocations: 77.93 MB / 0.5673 GB, free: 32.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.0232/0.3098, allocations: 29.79 MB / 0.5964 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00917/0.319, allocations: 8.142 MB / 0.6043 GB, free: 3.766 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.3203, allocations: 29 kB / 0.6044 GB, free: 3.754 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.3215, allocations: 432.1 kB / 0.6048 GB, free: 3.391 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003404/0.3249, allocations: 1.384 MB / 0.6061 GB, free: 2.305 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002414/0.3273, allocations: 1.122 MB / 0.6072 GB, free: 1.484 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003174/0.3305, allocations: 3.547 MB / 0.6107 GB, free: 14.29 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/0.3319, allocations: 1.332 MB / 0.612 GB, free: 12.95 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.3341, allocations: 1.667 MB / 0.6136 GB, free: 11.28 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002466/0.3366, allocations: 1.636 MB / 0.6152 GB, free: 9.637 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003698/0.337, allocations: 128 kB / 0.6153 GB, free: 9.512 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001904/0.3389, allocations: 1.01 MB / 0.6163 GB, free: 8.5 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00041/0.3393, allocations: 414.7 kB / 0.6167 GB, free: 8.094 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007614/0.3401, allocations: 0.7544 MB / 0.6174 GB, free: 7.336 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002151/0.3422, allocations: 2.181 MB / 0.6196 GB, free: 5.148 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3422, allocations: 0 / 0.6196 GB, free: 5.148 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3422, allocations: 0 / 0.6196 GB, free: 5.148 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.784e-05/0.3423, allocations: 0 / 0.6196 GB, free: 5.148 MB / 462.1 MB 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.002486/0.3448, allocations: 1.667 MB / 0.6212 GB, free: 3.43 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3448, allocations: 12.62 kB / 0.6212 GB, free: 3.418 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.732e-05/0.3449, allocations: 98.7 kB / 0.6213 GB, free: 3.312 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003399/0.3452, allocations: 151.2 kB / 0.6215 GB, free: 3.164 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.3467, allocations: 0.8909 MB / 0.6223 GB, free: 2.215 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.903e-05/0.3467, allocations: 81.31 kB / 0.6224 GB, free: 2.137 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/0.3469, allocations: 120 kB / 0.6225 GB, free: 2.02 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009413/0.3479, allocations: 0.6395 MB / 0.6231 GB, free: 1.352 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.3479, allocations: 0 / 0.6231 GB, free: 1.352 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.901e-05/0.348, allocations: 28 kB / 0.6232 GB, free: 1.324 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.348, allocations: 12 kB / 0.6232 GB, free: 1.312 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008417/0.3488, allocations: 472.8 kB / 0.6236 GB, free: 0.8516 MB / 462.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.003956/0.3528, allocations: 2.891 MB / 0.6265 GB, free: 13.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005656/0.3534, allocations: 312.8 kB / 0.6268 GB, free: 13.49 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.3537, allocations: 145.3 kB / 0.6269 GB, free: 13.35 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002598/0.3539, allocations: 344.7 kB / 0.6272 GB, free: 12.94 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.354, allocations: 34.84 kB / 0.6273 GB, free: 12.89 MB / 478.1 MB Notification: Performance of pre-optimization done (n=33): time 1.713e-06/0.354, allocations: 0 / 0.6273 GB, free: 12.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.001173/0.3551, allocations: 0.5368 MB / 0.6278 GB, free: 12.35 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.3552, allocations: 59.34 kB / 0.6278 GB, free: 12.28 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008902/0.3561, allocations: 0.9075 MB / 0.6287 GB, free: 11.36 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.3562, allocations: 53.7 kB / 0.6288 GB, free: 11.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004083/0.3566, allocations: 0.5376 MB / 0.6293 GB, free: 10.75 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.799e-05/0.3567, allocations: 114.3 kB / 0.6294 GB, free: 10.64 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003517/0.3571, allocations: 299 kB / 0.6297 GB, free: 10.34 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.968e-05/0.3572, allocations: 330.1 kB / 0.63 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003774/0.3575, allocations: 189.4 kB / 0.6302 GB, free: 9.828 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.3587, allocations: 1.151 MB / 0.6313 GB, free: 8.309 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007561/0.3595, allocations: 455.4 kB / 0.6317 GB, free: 7.84 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3595, allocations: 0 / 0.6317 GB, free: 7.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001221/0.3608, allocations: 0.6541 MB / 0.6324 GB, free: 7.18 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.3608, allocations: 4 kB / 0.6324 GB, free: 7.176 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.3608, allocations: 4 kB / 0.6324 GB, free: 7.172 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3608, allocations: 7.938 kB / 0.6324 GB, free: 7.164 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/0.3622, allocations: 227.7 kB / 0.6326 GB, free: 6.941 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.3636, allocations: 2.961 MB / 0.6355 GB, free: 3.863 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003079/0.3667, allocations: 0.7027 MB / 0.6362 GB, free: 3.156 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-05/0.3667, allocations: 27.98 kB / 0.6362 GB, free: 3.129 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006412/0.3674, allocations: 369.3 kB / 0.6366 GB, free: 2.766 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001185/0.3686, allocations: 1.154 MB / 0.6377 GB, free: 1.23 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007282/0.3693, allocations: 468.9 kB / 0.6381 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.595e-06/0.3693, allocations: 0 / 0.6381 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001278/0.3706, allocations: 0.6471 MB / 0.6388 GB, free: 84 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.3706, allocations: 7.984 kB / 0.6388 GB, free: 76 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3707, allocations: 4.312 kB / 0.6388 GB, free: 72 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.871e-06/0.3707, allocations: 11.94 kB / 0.6388 GB, free: 60 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006459/0.3713, allocations: 155.9 kB / 0.639 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.3713, allocations: 8 kB / 0.639 GB, free: 15.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004204/0.3755, allocations: 0.9651 MB / 0.6399 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.756e-05/0.3756, allocations: 24 kB / 0.6399 GB, free: 14.91 MB / 494.1 MB 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 (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002555/0.3759, allocations: 245 kB / 0.6402 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.376, allocations: 94.78 kB / 0.6402 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001092/0.3771, allocations: 0.5088 MB / 0.6407 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.3772, allocations: 4 kB / 0.6407 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3772, allocations: 0 / 0.6407 GB, free: 14.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3772, allocations: 3.938 kB / 0.6408 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.3791, allocations: 1.252 MB / 0.642 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.3791, allocations: 0 / 0.642 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005093/0.3796, allocations: 123.8 kB / 0.6421 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.3796, allocations: 4 kB / 0.6421 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.853e-05/0.3796, allocations: 15.88 kB / 0.6421 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001378/0.381, allocations: 2.946 MB / 0.645 GB, free: 9.523 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.381, allocations: 0 / 0.645 GB, free: 9.523 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008161/0.3819, allocations: 0.5694 MB / 0.6455 GB, free: 8.926 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/0.3821, allocations: 211.7 kB / 0.6457 GB, free: 8.699 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.3822, allocations: 8 kB / 0.6458 GB, free: 8.691 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004461/0.3827, allocations: 31.84 kB / 0.6458 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/0.3828, allocations: 35.95 kB / 0.6458 GB, free: 8.625 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.3828, allocations: 12 kB / 0.6458 GB, free: 8.613 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0006767/0.3835, allocations: 0.6084 MB / 0.6464 GB, free: 7.996 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3835, allocations: 0 / 0.6464 GB, free: 7.996 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00125/0.3848, allocations: 0.5462 MB / 0.647 GB, free: 7.449 MB / 494.1 MB 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 (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001553/0.3863, allocations: 1.323 MB / 0.6483 GB, free: 6.102 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002401/0.3887, allocations: 0.8624 MB / 0.6491 GB, free: 5.23 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3887, allocations: 0 / 0.6491 GB, free: 5.23 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005432/0.3893, allocations: 235.4 kB / 0.6493 GB, free: 5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.391, allocations: 405.3 kB / 0.6497 GB, free: 4.621 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008637/0.3997, allocations: 6.943 MB / 0.6565 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004815/0.4002, allocations: 1.025 MB / 0.6575 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008758/0.4011, allocations: 204 kB / 0.6577 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004163/0.4015, allocations: 371.3 kB / 0.658 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of SimCode: time 6.01e-07/0.4015, allocations: 0 / 0.658 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05907/0.4606, allocations: 33.23 MB / 0.6905 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.42, allocations: 11.81 kB / 0.6905 GB, free: 11.11 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)