Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7299/0.7299, allocations: 128.7 MB / 143.7 MB, free: 2.328 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 184.4 kB / 173.7 MB, free: 6.125 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.78/1.78, allocations: 205.4 MB / 409 MB, free: 10.51 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009327/0.0009331, allocations: 90.8 kB / 486.6 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003554, allocations: 12.73 kB / 0.5604 GB, free: 97.5 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1689, allocations: 76.77 MB / 0.6354 GB, free: 30.46 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.234/1.402, allocations: 363.1 MB / 0.99 GB, free: 236.3 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003772/1.403, allocations: 102 kB / 0.9901 GB, free: 236.3 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.9785/2.381, allocations: 298 MB / 1.281 GB, free: 152 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.495e-06/2.381, allocations: 0 / 1.281 GB, free: 152 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0002114/2.382, allocations: 28.22 kB / 1.281 GB, free: 152 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: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.00394/2.386, allocations: 1.393 MB / 1.283 GB, free: 151.4 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/2.386, allocations: 10.25 kB / 1.283 GB, free: 151.4 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002688/2.386, allocations: 99.53 kB / 1.283 GB, free: 151.4 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009852/2.387, allocations: 185.1 kB / 1.283 GB, free: 151.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/2.389, allocations: 0.6694 MB / 1.283 GB, free: 151 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.98e-05/2.389, allocations: 53.27 kB / 1.283 GB, free: 151 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/2.389, allocations: 66.81 kB / 1.284 GB, free: 151 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003109/2.392, allocations: 0.9727 MB / 1.285 GB, free: 150.9 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/2.392, allocations: 0 / 1.285 GB, free: 150.9 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.237e-05/2.392, allocations: 23.38 kB / 1.285 GB, free: 150.9 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/2.392, allocations: 11.81 kB / 1.285 GB, free: 150.9 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002745/2.395, allocations: 0.7681 MB / 1.285 GB, free: 150.9 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.004031/2.399, allocations: 2.611 MB / 1.288 GB, free: 149.6 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002577/2.402, allocations: 0.6647 MB / 1.288 GB, free: 149.6 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003978/2.402, allocations: 433.9 kB / 1.289 GB, free: 149.1 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002247/2.404, allocations: 0.6265 MB / 1.29 GB, free: 149 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=35): time 3.497e-06/2.404, allocations: 0 / 1.29 GB, free: 149 MB / 0.6511 GB Notification: Performance of matching and sorting (n=35): time 0.005216/2.41, allocations: 1.428 MB / 1.291 GB, free: 148.8 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/2.41, allocations: 193.6 kB / 1.291 GB, free: 148.6 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/2.411, allocations: 0.7126 MB / 1.292 GB, free: 148.4 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001294/2.411, allocations: 44.14 kB / 1.292 GB, free: 148.4 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003575/2.411, allocations: 436.4 kB / 1.292 GB, free: 148.3 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/2.411, allocations: 116.7 kB / 1.292 GB, free: 148.2 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/2.411, allocations: 11.09 kB / 1.292 GB, free: 148.2 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 7.959e-05/2.412, allocations: 330.4 kB / 1.293 GB, free: 147.9 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007901/2.412, allocations: 335.6 kB / 1.293 GB, free: 147.9 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008998/2.413, allocations: 0.5046 MB / 1.293 GB, free: 147.7 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008326/2.414, allocations: 384.6 kB / 1.294 GB, free: 147.7 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/2.414, allocations: 0 / 1.294 GB, free: 147.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002082/2.416, allocations: 1.007 MB / 1.295 GB, free: 147.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002571/2.416, allocations: 1.084 MB / 1.296 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/2.416, allocations: 3.375 kB / 1.296 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.595e-05/2.417, allocations: 6.531 kB / 1.296 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00281/2.419, allocations: 433.7 kB / 1.296 GB, free: 146.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/2.421, allocations: 1.973 MB / 1.298 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/2.422, allocations: 170.4 kB / 1.298 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.592e-05/2.422, allocations: 44 kB / 1.298 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/2.423, allocations: 3.688 kB / 1.298 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001687/2.424, allocations: 0.8452 MB / 1.299 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/2.424, allocations: 1.594 kB / 1.299 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/2.424, allocations: 11.31 kB / 1.299 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007424/2.425, allocations: 167.1 kB / 1.299 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/2.425, allocations: 7.875 kB / 1.299 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/2.426, allocations: 141 kB / 1.3 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-05/2.426, allocations: 37.66 kB / 1.3 GB, free: 144.6 MB / 0.6511 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.0005161/2.427, allocations: 355.6 kB / 1.3 GB, free: 144.3 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/2.427, allocations: 91.25 kB / 1.3 GB, free: 144.3 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/2.429, allocations: 0.8759 MB / 1.301 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/2.429, allocations: 2.594 kB / 1.301 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/2.429, allocations: 3.781 kB / 1.301 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/2.429, allocations: 7.734 kB / 1.301 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/2.432, allocations: 1.609 MB / 1.303 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/2.432, allocations: 3.438 kB / 1.303 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002517/2.435, allocations: 409.5 kB / 1.303 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.717e-06/2.435, allocations: 3.188 kB / 1.303 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.175e-05/2.435, allocations: 23.23 kB / 1.303 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005865/2.441, allocations: 4.535 MB / 1.307 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/2.441, allocations: 3.938 kB / 1.307 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002759/2.443, allocations: 1.264 MB / 1.309 GB, free: 139.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005342/2.444, allocations: 239.2 kB / 1.309 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/2.444, allocations: 9.875 kB / 1.309 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/2.445, allocations: 114.9 kB / 1.309 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/2.445, allocations: 45.95 kB / 1.309 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.469e-05/2.445, allocations: 30.77 kB / 1.309 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0009979/2.446, allocations: 0.5737 MB / 1.31 GB, free: 139.4 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.71e-07/2.447, allocations: 0 / 1.31 GB, free: 139.4 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002106/2.449, allocations: 0.4913 MB / 1.31 GB, free: 139.3 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (30): * Single equations (assignments): 26 * 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 Backend phase and start with SimCode phase: time 0.003836/2.452, allocations: 2.089 MB / 1.312 GB, free: 138.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.004694/2.457, allocations: 1.482 MB / 1.314 GB, free: 138.4 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/2.457, allocations: 0 / 1.314 GB, free: 138.4 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.002629/2.46, allocations: 0.6566 MB / 1.314 GB, free: 138.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/2.462, allocations: 357.9 kB / 1.315 GB, free: 138.3 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004556/2.466, allocations: 3.872 MB / 1.318 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/2.467, allocations: 1.005 MB / 1.319 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008284/2.468, allocations: 149.8 kB / 1.319 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004832/2.468, allocations: 333.4 kB / 1.32 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of SimCode: time 1.413e-06/2.468, allocations: 2.5 kB / 1.32 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05079/2.519, allocations: 26.11 MB / 1.345 GB, free: 134 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/2.519, allocations: 269.4 kB / 1.345 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.003/5.522, allocations: 0 / 1.345 GB, free: 133.6 MB / 0.6511 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)