Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="BuildSysPro_BuildSysPro_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.0009263/0.0009262, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009659/0.0009659, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.053/1.053, allocations: 143.3 MB / 434.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003341/0.0003342, allocations: 8 kB / 0.5159 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1867/0.1871, allocations: 83.42 MB / 0.5974 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.3996/0.5868, allocations: 25.02 MB / 0.6218 GB, free: 30.79 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00915/0.596, allocations: 7.048 MB / 0.6287 GB, free: 25.86 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001744/0.5978, allocations: 23.56 kB / 0.6287 GB, free: 25.85 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.5993, allocations: 375.1 kB / 0.6291 GB, free: 25.64 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005062/0.6044, allocations: 1.448 MB / 0.6305 GB, free: 24.72 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003619/0.608, allocations: 1.195 MB / 0.6316 GB, free: 24.15 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004042/0.6121, allocations: 2.107 MB / 0.6337 GB, free: 23.2 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001878/0.614, allocations: 1.099 MB / 0.6348 GB, free: 22.92 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002724/0.6167, allocations: 1.283 MB / 0.636 GB, free: 22.43 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.6194, allocations: 1.3 MB / 0.6373 GB, free: 22.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004658/0.6199, allocations: 63.38 kB / 0.6374 GB, free: 22.07 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.6223, allocations: 0.9055 MB / 0.6382 GB, free: 21.84 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000403/0.6227, allocations: 328.9 kB / 0.6386 GB, free: 21.71 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005438/0.6232, allocations: 245.6 kB / 0.6388 GB, free: 21.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001894/0.6251, allocations: 1.601 MB / 0.6404 GB, free: 21.28 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.6252, allocations: 4 kB / 0.6404 GB, free: 21.27 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.873e-06/0.6252, allocations: 0 / 0.6404 GB, free: 21.27 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.261e-05/0.6252, allocations: 0 / 0.6404 GB, free: 21.27 MB / 0.4981 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.002329/0.6276, allocations: 1.354 MB / 0.6417 GB, free: 20.35 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.276e-05/0.6276, allocations: 10.5 kB / 0.6417 GB, free: 20.35 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001149/0.6277, allocations: 98.17 kB / 0.6418 GB, free: 20.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003479/0.6281, allocations: 151.4 kB / 0.6419 GB, free: 20.21 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.6298, allocations: 0.8663 MB / 0.6428 GB, free: 19.72 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.775e-05/0.6299, allocations: 81.66 kB / 0.6428 GB, free: 19.69 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001804/0.6301, allocations: 115.1 kB / 0.643 GB, free: 19.66 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009414/0.631, allocations: 0.6351 MB / 0.6436 GB, free: 19.37 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.631, allocations: 0 / 0.6436 GB, free: 19.37 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.093e-05/0.6311, allocations: 26.16 kB / 0.6436 GB, free: 19.35 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.6311, allocations: 13.78 kB / 0.6436 GB, free: 19.35 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009842/0.6321, allocations: 472.7 kB / 0.6441 GB, free: 19.21 MB / 0.4981 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.004552/0.6367, allocations: 2.885 MB / 0.6469 GB, free: 17.39 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005853/0.6373, allocations: 307 kB / 0.6472 GB, free: 17.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002509/0.6375, allocations: 351.9 kB / 0.6475 GB, free: 16.88 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.6376, allocations: 47.97 kB / 0.6476 GB, free: 16.83 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 2.324e-06/0.6376, allocations: 1.531 kB / 0.6476 GB, free: 16.83 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.001382/0.639, allocations: 0.5482 MB / 0.6481 GB, free: 16.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.639, allocations: 54.91 kB / 0.6481 GB, free: 16.56 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.6402, allocations: 0.8941 MB / 0.649 GB, free: 16.19 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.6404, allocations: 57.48 kB / 0.6491 GB, free: 16.14 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004279/0.6408, allocations: 0.5242 MB / 0.6496 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.049e-05/0.6409, allocations: 115.4 kB / 0.6497 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-05/0.641, allocations: 14.09 kB / 0.6497 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.654e-05/0.6411, allocations: 326.2 kB / 0.65 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004146/0.6415, allocations: 176.1 kB / 0.6502 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.6428, allocations: 1.14 MB / 0.6513 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005385/0.6433, allocations: 305.8 kB / 0.6516 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.6433, allocations: 1.156 kB / 0.6516 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001493/0.6448, allocations: 0.6448 MB / 0.6522 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001827/0.645, allocations: 0.7988 MB / 0.653 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.645, allocations: 6.219 kB / 0.653 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.6451, allocations: 6.594 kB / 0.653 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.6466, allocations: 237.2 kB / 0.6532 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.6477, allocations: 2.965 MB / 0.6561 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003869/0.6516, allocations: 0.7527 MB / 0.6569 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.6517, allocations: 30.91 kB / 0.6569 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.6517, allocations: 3.344 kB / 0.6569 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00112/0.6529, allocations: 0.498 MB / 0.6574 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.6529, allocations: 2.5 kB / 0.6574 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.6529, allocations: 9.109 kB / 0.6574 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007236/0.6536, allocations: 159.7 kB / 0.6576 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.6537, allocations: 9.312 kB / 0.6576 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003962/0.6576, allocations: 0.7379 MB / 0.6583 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.411e-05/0.6577, allocations: 28.25 kB / 0.6583 GB, free: 9.512 MB / 0.4981 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.0008796/0.6586, allocations: 325.1 kB / 0.6586 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/0.6589, allocations: 95.39 kB / 0.6587 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.6602, allocations: 0.5356 MB / 0.6592 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.6602, allocations: 9.203 kB / 0.6592 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.6602, allocations: 0 / 0.6592 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.6602, allocations: 1.969 kB / 0.6592 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002445/0.6627, allocations: 1.266 MB / 0.6605 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/0.6627, allocations: 1.219 kB / 0.6605 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005853/0.6633, allocations: 113.9 kB / 0.6606 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/0.6633, allocations: 8.688 kB / 0.6606 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.6634, allocations: 13.75 kB / 0.6606 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001006/0.6644, allocations: 2.935 MB / 0.6635 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.6644, allocations: 1.031 kB / 0.6635 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.6654, allocations: 0.6432 MB / 0.6641 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004632/0.6659, allocations: 225.6 kB / 0.6643 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.666, allocations: 8.078 kB / 0.6643 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005685/0.6666, allocations: 60.34 kB / 0.6644 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.6667, allocations: 34.59 kB / 0.6644 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.547e-05/0.6667, allocations: 15.98 kB / 0.6644 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001018/0.6678, allocations: 0.6013 MB / 0.665 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.92e-07/0.6678, allocations: 0 / 0.665 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002367/0.6702, allocations: 0.5423 MB / 0.6656 GB, free: 4.34 MB / 0.4981 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.002175/0.6723, allocations: 1.672 MB / 0.6672 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003201/0.6755, allocations: 0.8326 MB / 0.668 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.6756, allocations: 8.969 kB / 0.668 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007698/0.6765, allocations: 233.5 kB / 0.6682 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/0.6798, allocations: 479.7 kB / 0.6687 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005476/0.6853, allocations: 3.556 MB / 0.6722 GB, free: 0 / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009606/0.6863, allocations: 1.052 MB / 0.6732 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001705/0.688, allocations: 212.6 kB / 0.6734 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005761/0.6886, allocations: 370.6 kB / 0.6737 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of SimCode: time 1.823e-06/0.6886, allocations: 3.938 kB / 0.6738 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07547/0.7641, allocations: 31.89 MB / 0.7049 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002542/0.7644, allocations: 263.7 kB / 0.7052 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.735/3.499, allocations: 8.062 kB / 0.7052 GB, free: 12.98 MB / 0.5294 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) Environment - environmentSimulation: