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.001372/0.001372, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4905/0.4905, allocations: 90.91 MB / 99.34 MB, free: 2.195 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 221.5 MB / 343.2 MB, free: 1.57 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008758/0.0008758, allocations: 83.05 kB / 415.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.929e-05/1.93e-05, allocations: 4 kB / 494.6 MB, free: 52.29 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1381, allocations: 72.3 MB / 0.5536 GB, free: 12.17 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.111/1.249, allocations: 352.4 MB / 0.8978 GB, free: 128 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/1.25, allocations: 97.5 kB / 0.8979 GB, free: 127.9 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.8955/2.145, allocations: 305.1 MB / 1.196 GB, free: 60.15 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.593e-06/2.145, allocations: 0 / 1.196 GB, free: 60.15 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001159/2.145, allocations: 24 kB / 1.196 GB, free: 60.12 MB / 0.5886 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.002639/2.148, allocations: 1.258 MB / 1.197 GB, free: 58.81 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/2.148, allocations: 8.031 kB / 1.197 GB, free: 58.8 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004002/2.149, allocations: 118.7 kB / 1.197 GB, free: 58.69 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/2.15, allocations: 0.6639 MB / 1.198 GB, free: 57.98 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.578e-05/2.15, allocations: 24 kB / 1.198 GB, free: 57.96 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/2.15, allocations: 40 kB / 1.198 GB, free: 57.92 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006692/2.151, allocations: 406.4 kB / 1.198 GB, free: 57.52 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007707/2.152, allocations: 0.5662 MB / 1.199 GB, free: 56.92 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/2.152, allocations: 4 kB / 1.199 GB, free: 56.92 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.906e-05/2.152, allocations: 0 / 1.199 GB, free: 56.92 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/2.152, allocations: 19.98 kB / 1.199 GB, free: 56.9 MB / 0.5886 GB Warning: The model contains alias variables with conflicting start and/or 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.003159/2.155, allocations: 2.463 MB / 1.201 GB, free: 54.32 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004562/2.155, allocations: 343.4 kB / 1.202 GB, free: 53.96 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/2.156, allocations: 189.1 kB / 1.202 GB, free: 53.78 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002676/2.156, allocations: 348.6 kB / 1.202 GB, free: 53.36 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003617/2.156, allocations: 321.2 kB / 1.202 GB, free: 53.02 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=37): time 2.514e-06/2.156, allocations: 7.938 kB / 1.202 GB, free: 53.01 MB / 0.5886 GB Notification: Performance of matching and sorting (n=37): time 0.001466/2.158, allocations: 0.6058 MB / 1.203 GB, free: 52.39 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/2.158, allocations: 243.5 kB / 1.203 GB, free: 52.1 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006309/2.158, allocations: 0.6023 MB / 1.204 GB, free: 51.49 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 6.088e-05/2.159, allocations: 25.7 kB / 1.204 GB, free: 51.46 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002473/2.159, allocations: 443.8 kB / 1.204 GB, free: 51.02 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 8.389e-05/2.159, allocations: 118.3 kB / 1.204 GB, free: 50.91 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/2.159, allocations: 4 kB / 1.204 GB, free: 50.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 5.518e-05/2.159, allocations: 326 kB / 1.205 GB, free: 50.58 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/2.159, allocations: 193.1 kB / 1.205 GB, free: 50.39 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/2.16, allocations: 375.8 kB / 1.205 GB, free: 49.94 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008261/2.16, allocations: 317.9 kB / 1.206 GB, free: 49.63 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/2.16, allocations: 4 kB / 1.206 GB, free: 49.62 MB / 0.5886 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001444/2.162, allocations: 0.7509 MB / 1.206 GB, free: 48.87 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002878/2.162, allocations: 1.082 MB / 1.207 GB, free: 47.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/2.162, allocations: 7.938 kB / 1.207 GB, free: 47.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.556e-05/2.162, allocations: 8 kB / 1.207 GB, free: 47.69 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009281/2.163, allocations: 161.6 kB / 1.207 GB, free: 47.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007156/2.164, allocations: 1.801 MB / 1.209 GB, free: 45.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007917/2.165, allocations: 99.64 kB / 1.209 GB, free: 45.56 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-05/2.165, allocations: 31.98 kB / 1.209 GB, free: 45.53 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/2.165, allocations: 8 kB / 1.209 GB, free: 45.52 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001199/2.166, allocations: 0.6407 MB / 1.21 GB, free: 44.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/2.166, allocations: 0 / 1.21 GB, free: 44.88 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.123e-06/2.166, allocations: 8 kB / 1.21 GB, free: 44.87 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004692/2.167, allocations: 136.1 kB / 1.21 GB, free: 44.74 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/2.167, allocations: 8 kB / 1.21 GB, free: 44.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006657/2.167, allocations: 91.61 kB / 1.21 GB, free: 44.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-05/2.167, allocations: 35.92 kB / 1.21 GB, free: 44.61 MB / 0.5886 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * 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.0001674/2.167, allocations: 162.5 kB / 1.21 GB, free: 44.43 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001146/2.169, allocations: 0.6095 MB / 1.211 GB, free: 43.82 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.556e-05/2.169, allocations: 90.95 kB / 1.211 GB, free: 43.73 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001396/2.17, allocations: 0.7176 MB / 1.212 GB, free: 43 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/2.17, allocations: 4 kB / 1.212 GB, free: 43 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/2.17, allocations: 96 / 1.212 GB, free: 43 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/2.17, allocations: 7.984 kB / 1.212 GB, free: 42.99 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/2.172, allocations: 1.519 MB / 1.213 GB, free: 41.42 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/2.172, allocations: 0 / 1.213 GB, free: 41.42 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003948/2.173, allocations: 103.8 kB / 1.213 GB, free: 41.32 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/2.173, allocations: 4 kB / 1.213 GB, free: 41.31 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/2.173, allocations: 11.98 kB / 1.213 GB, free: 41.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004451/2.173, allocations: 1.77 MB / 1.215 GB, free: 39.46 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/2.173, allocations: 3.953 kB / 1.215 GB, free: 39.46 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/2.175, allocations: 1.209 MB / 1.216 GB, free: 38.2 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/2.175, allocations: 239.8 kB / 1.217 GB, free: 37.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.964e-05/2.175, allocations: 4 kB / 1.217 GB, free: 37.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005539/2.175, allocations: 67.92 kB / 1.217 GB, free: 37.87 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.958e-05/2.176, allocations: 47.92 kB / 1.217 GB, free: 37.82 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/2.176, allocations: 20 kB / 1.217 GB, free: 37.8 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0004182/2.176, allocations: 459.1 kB / 1.217 GB, free: 37.36 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.8e-07/2.176, allocations: 3.938 kB / 1.217 GB, free: 37.36 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001372/2.177, allocations: 498.8 kB / 1.218 GB, free: 36.87 MB / 0.5886 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) * 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.002287/2.18, allocations: 2.314 MB / 1.22 GB, free: 34.51 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.001489/2.181, allocations: 0.9326 MB / 1.221 GB, free: 33.55 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/2.181, allocations: 0.5625 kB / 1.221 GB, free: 33.55 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0003876/2.182, allocations: 319.2 kB / 1.221 GB, free: 33.23 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/2.183, allocations: 292.5 kB / 1.221 GB, free: 32.94 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/2.185, allocations: 1.259 MB / 1.223 GB, free: 31.63 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/2.186, allocations: 1.022 MB / 1.224 GB, free: 30.57 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0006846/2.186, allocations: 188 kB / 1.224 GB, free: 30.39 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003064/2.187, allocations: 327.3 kB / 1.224 GB, free: 30.07 MB / 0.5886 GB Notification: Performance of SimCode: time 8.01e-07/2.187, allocations: 0 / 1.224 GB, free: 30.07 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04815/2.235, allocations: 22.69 MB / 1.246 GB, free: 7.566 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/2.235, allocations: 180.5 kB / 1.246 GB, free: 7.371 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.727/4.962, allocations: 0 / 1.246 GB, free: 7.371 MB / 0.5886 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)