Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json 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/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001848/0.001848, allocations: 182.4 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6648/0.6648, allocations: 91.98 MB / 108.5 MB, free: 13.08 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.733/1.733, allocations: 223.2 MB / 354.3 MB, free: 12.1 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 91.22 kB / 427.4 MB, free: 3.816 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004719/0.0004719, allocations: 16 kB / 0.4983 GB, free: 42.18 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.166, allocations: 72.3 MB / 0.5689 GB, free: 1.812 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.035/1.201, allocations: 353.1 MB / 0.9138 GB, free: 112.9 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003432/1.202, allocations: 99.12 kB / 0.9139 GB, free: 112.9 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.9478/2.15, allocations: 308.2 MB / 1.215 GB, free: 66.8 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.104e-06/2.15, allocations: 0 / 1.215 GB, free: 66.8 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0001189/2.15, allocations: 32 kB / 1.215 GB, free: 66.77 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003328/2.153, allocations: 1.415 MB / 1.216 GB, free: 65.3 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/2.153, allocations: 12.03 kB / 1.216 GB, free: 65.29 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002591/2.154, allocations: 98.52 kB / 1.216 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003644/2.154, allocations: 118.6 kB / 1.217 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/2.155, allocations: 0.6756 MB / 1.217 GB, free: 64.35 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.584e-05/2.156, allocations: 49.31 kB / 1.217 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/2.156, allocations: 71.95 kB / 1.217 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/2.157, allocations: 0.6819 MB / 1.218 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/2.157, allocations: 7.938 kB / 1.218 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.7e-05/2.157, allocations: 28 kB / 1.218 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/2.157, allocations: 16 kB / 1.218 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008064/2.158, allocations: 476.8 kB / 1.218 GB, free: 62.99 MB / 0.6042 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.003689/2.161, allocations: 2.604 MB / 1.221 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007431/2.162, allocations: 412.3 kB / 1.221 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002636/2.162, allocations: 340.4 kB / 1.222 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005194/2.163, allocations: 366.1 kB / 1.222 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 3.737e-06/2.163, allocations: 0 / 1.222 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001534/2.165, allocations: 0.8928 MB / 1.223 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/2.165, allocations: 239.6 kB / 1.223 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008738/2.165, allocations: 0.734 MB / 1.224 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.124e-05/2.166, allocations: 41.7 kB / 1.224 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002643/2.166, allocations: 436.3 kB / 1.224 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.574e-05/2.166, allocations: 110.5 kB / 1.224 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.055e-05/2.166, allocations: 12 kB / 1.224 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.008e-05/2.166, allocations: 334 kB / 1.225 GB, free: 56.14 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003785/2.166, allocations: 225.2 kB / 1.225 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004617/2.167, allocations: 428.8 kB / 1.225 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000438/2.167, allocations: 284.2 kB / 1.226 GB, free: 55.14 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/2.167, allocations: 0 / 1.226 GB, free: 55.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001242/2.169, allocations: 0.8073 MB / 1.226 GB, free: 54.33 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002529/2.169, allocations: 1.086 MB / 1.228 GB, free: 53.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/2.169, allocations: 0 / 1.228 GB, free: 53.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.804e-05/2.169, allocations: 15.89 kB / 1.228 GB, free: 53.13 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008727/2.17, allocations: 159.8 kB / 1.228 GB, free: 52.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007378/2.171, allocations: 1.782 MB / 1.229 GB, free: 51.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009002/2.171, allocations: 127.4 kB / 1.23 GB, free: 51 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.375e-05/2.172, allocations: 31.98 kB / 1.23 GB, free: 50.97 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/2.172, allocations: 5.25 kB / 1.23 GB, free: 50.96 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001106/2.173, allocations: 0.7088 MB / 1.23 GB, free: 50.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/2.173, allocations: 8.281 kB / 1.23 GB, free: 50.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.304e-06/2.173, allocations: 8 kB / 1.23 GB, free: 50.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/2.173, allocations: 131.9 kB / 1.23 GB, free: 50.11 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.986e-06/2.173, allocations: 7.938 kB / 1.23 GB, free: 50.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007921/2.174, allocations: 119.4 kB / 1.231 GB, free: 49.98 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-05/2.174, allocations: 31.98 kB / 1.231 GB, free: 49.95 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004812/2.175, allocations: 353 kB / 1.231 GB, free: 49.59 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/2.175, allocations: 98.78 kB / 1.231 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/2.176, allocations: 0.756 MB / 1.232 GB, free: 48.73 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/2.176, allocations: 4 kB / 1.232 GB, free: 48.72 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/2.176, allocations: 0 / 1.232 GB, free: 48.72 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/2.176, allocations: 4 kB / 1.232 GB, free: 48.72 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002365/2.179, allocations: 1.622 MB / 1.233 GB, free: 47.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/2.179, allocations: 0 / 1.233 GB, free: 47.03 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004278/2.179, allocations: 104 kB / 1.233 GB, free: 46.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.885e-06/2.179, allocations: 4 kB / 1.233 GB, free: 46.92 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.121e-05/2.179, allocations: 15.98 kB / 1.233 GB, free: 46.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005513/2.18, allocations: 1.766 MB / 1.235 GB, free: 45.07 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/2.18, allocations: 3.953 kB / 1.235 GB, free: 45.07 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/2.181, allocations: 1.283 MB / 1.236 GB, free: 43.73 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003983/2.182, allocations: 239.7 kB / 1.237 GB, free: 43.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001595/2.182, allocations: 12 kB / 1.237 GB, free: 43.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006718/2.182, allocations: 72 kB / 1.237 GB, free: 43.39 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/2.183, allocations: 43.92 kB / 1.237 GB, free: 43.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.911e-05/2.183, allocations: 27.98 kB / 1.237 GB, free: 43.32 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0007162/2.183, allocations: 0.5631 MB / 1.237 GB, free: 42.75 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.1e-07/2.183, allocations: 0 / 1.237 GB, free: 42.75 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001677/2.185, allocations: 0.5031 MB / 1.238 GB, free: 42.24 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00298/2.188, allocations: 2.384 MB / 1.24 GB, free: 39.81 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001989/2.19, allocations: 1.028 MB / 1.241 GB, free: 38.76 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/2.19, allocations: 0 / 1.241 GB, free: 38.76 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0005568/2.191, allocations: 367.2 kB / 1.242 GB, free: 38.39 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/2.192, allocations: 362.9 kB / 1.242 GB, free: 38.04 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004845/2.197, allocations: 3.918 MB / 1.246 GB, free: 34 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000538/2.198, allocations: 1.028 MB / 1.247 GB, free: 32.94 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0007364/2.199, allocations: 150 kB / 1.247 GB, free: 32.79 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004766/2.199, allocations: 335.3 kB / 1.247 GB, free: 32.46 MB / 0.6042 GB Notification: Performance of SimCode: time 1.263e-06/2.199, allocations: 0 / 1.247 GB, free: 32.46 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04772/2.247, allocations: 25.28 MB / 1.272 GB, free: 7.562 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002026/2.247, allocations: 257.8 kB / 1.272 GB, free: 7.223 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.815/5.062, allocations: 0 / 1.272 GB, free: 7.223 MB / 0.6042 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)