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.7203/0.7203, allocations: 127.3 MB / 139.8 MB, free: 15.47 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009962/0.0009962, allocations: 196.7 kB / 169.7 MB, free: 1.719 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.525/1.525, allocations: 205.1 MB / 404.5 MB, free: 1.594 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.0008718/0.0008719, allocations: 85.19 kB / 481.8 MB, free: 4.246 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.87e-05/3.872e-05, allocations: 4 kB / 0.5533 GB, free: 54.72 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1544, allocations: 76.75 MB / 0.6283 GB, free: 9.91 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.028/1.183, allocations: 363 MB / 0.9828 GB, free: 148.8 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/1.183, allocations: 96.25 kB / 0.9829 GB, free: 148.8 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.848/2.031, allocations: 297.2 MB / 1.273 GB, free: 137 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.753e-06/2.031, allocations: 0 / 1.273 GB, free: 137 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.959e-05/2.031, allocations: 32.06 kB / 1.273 GB, free: 137 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.00175/2.033, allocations: 1.225 MB / 1.274 GB, free: 135.7 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/2.033, allocations: 12.03 kB / 1.274 GB, free: 135.7 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.318e-05/2.033, allocations: 90.52 kB / 1.274 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006592/2.034, allocations: 178.6 kB / 1.275 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/2.035, allocations: 0.6633 MB / 1.275 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/2.035, allocations: 57.27 kB / 1.275 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.257e-05/2.035, allocations: 60 kB / 1.275 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002272/2.037, allocations: 0.8726 MB / 1.276 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/2.037, allocations: 3.938 kB / 1.276 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.189e-05/2.037, allocations: 23.94 kB / 1.276 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/2.037, allocations: 20 kB / 1.276 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/2.039, allocations: 0.6366 MB / 1.277 GB, free: 133 MB / 0.6511 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.00321/2.043, allocations: 2.604 MB / 1.279 GB, free: 130.3 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/2.044, allocations: 0.5264 MB / 1.28 GB, free: 129.7 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/2.045, allocations: 181.1 kB / 1.28 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003883/2.045, allocations: 437.5 kB / 1.281 GB, free: 129 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001755/2.047, allocations: 0.5381 MB / 1.281 GB, free: 128.5 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=35): time 2.665e-06/2.047, allocations: 0 / 1.281 GB, free: 128.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=35): time 0.003704/2.051, allocations: 0.9729 MB / 1.282 GB, free: 127.5 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/2.051, allocations: 188.1 kB / 1.282 GB, free: 127.3 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000725/2.051, allocations: 0.7092 MB / 1.283 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.61e-05/2.051, allocations: 45.64 kB / 1.283 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002288/2.052, allocations: 440.3 kB / 1.283 GB, free: 126.1 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.793e-05/2.052, allocations: 114.5 kB / 1.283 GB, free: 125.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.764e-05/2.052, allocations: 12 kB / 1.283 GB, free: 125.9 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 6.665e-05/2.052, allocations: 334 kB / 1.284 GB, free: 125.6 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003346/2.052, allocations: 233.3 kB / 1.284 GB, free: 125.4 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004006/2.053, allocations: 423.8 kB / 1.284 GB, free: 124.9 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/2.053, allocations: 288.8 kB / 1.285 GB, free: 124.6 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/2.053, allocations: 4 kB / 1.285 GB, free: 124.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001076/2.054, allocations: 0.8149 MB / 1.285 GB, free: 123.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001606/2.054, allocations: 1.087 MB / 1.287 GB, free: 122.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/2.054, allocations: 4 kB / 1.287 GB, free: 122.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/2.054, allocations: 7.984 kB / 1.287 GB, free: 122.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002683/2.057, allocations: 431.5 kB / 1.287 GB, free: 122.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00149/2.059, allocations: 1.918 MB / 1.289 GB, free: 120.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/2.06, allocations: 171.3 kB / 1.289 GB, free: 120 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.83e-05/2.06, allocations: 35.97 kB / 1.289 GB, free: 120 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.927e-06/2.06, allocations: 4 kB / 1.289 GB, free: 120 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009591/2.061, allocations: 0.7011 MB / 1.29 GB, free: 119.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/2.061, allocations: 4 kB / 1.29 GB, free: 119.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.262e-06/2.061, allocations: 4 kB / 1.29 GB, free: 119.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000717/2.061, allocations: 172.1 kB / 1.29 GB, free: 119.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/2.061, allocations: 4 kB / 1.29 GB, free: 119.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008216/2.062, allocations: 147.3 kB / 1.29 GB, free: 118.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.685e-05/2.062, allocations: 39.94 kB / 1.29 GB, free: 118.9 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 () * 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.0001776/2.063, allocations: 180.1 kB / 1.29 GB, free: 118.7 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/2.063, allocations: 90.88 kB / 1.29 GB, free: 118.6 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001096/2.064, allocations: 0.7057 MB / 1.291 GB, free: 117.9 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/2.064, allocations: 4 kB / 1.291 GB, free: 117.9 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/2.064, allocations: 4 kB / 1.291 GB, free: 117.9 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/2.064, allocations: 0 / 1.291 GB, free: 117.9 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/2.066, allocations: 1.443 MB / 1.292 GB, free: 116.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/2.066, allocations: 0 / 1.292 GB, free: 116.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002469/2.068, allocations: 407.5 kB / 1.293 GB, free: 116 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/2.068, allocations: 0 / 1.293 GB, free: 116 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.55e-05/2.068, allocations: 23.94 kB / 1.293 GB, free: 116 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004422/2.073, allocations: 4.3 MB / 1.297 GB, free: 111.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/2.073, allocations: 4 kB / 1.297 GB, free: 111.3 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/2.074, allocations: 0.9978 MB / 1.298 GB, free: 110.2 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003082/2.074, allocations: 239.7 kB / 1.298 GB, free: 110 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/2.075, allocations: 12 kB / 1.298 GB, free: 110 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008376/2.075, allocations: 119.9 kB / 1.298 GB, free: 109.9 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/2.075, allocations: 47.86 kB / 1.298 GB, free: 109.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/2.076, allocations: 19.98 kB / 1.298 GB, free: 109.8 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0006021/2.076, allocations: 0.5709 MB / 1.299 GB, free: 109.2 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/2.076, allocations: 0 / 1.299 GB, free: 109.2 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001236/2.077, allocations: 487.4 kB / 1.299 GB, free: 108.7 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) * 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.001805/2.079, allocations: 1.814 MB / 1.301 GB, free: 106.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.003119/2.082, allocations: 1.251 MB / 1.302 GB, free: 105.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/2.082, allocations: 0 / 1.302 GB, free: 105.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.002172/2.085, allocations: 0.5661 MB / 1.303 GB, free: 105.1 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001731/2.086, allocations: 358.9 kB / 1.303 GB, free: 104.7 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/2.089, allocations: 1.261 MB / 1.305 GB, free: 103.4 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/2.089, allocations: 1.003 MB / 1.306 GB, free: 102.4 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008371/2.09, allocations: 213.1 kB / 1.306 GB, free: 102.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003413/2.09, allocations: 319.3 kB / 1.306 GB, free: 101.9 MB / 0.6511 GB Notification: Performance of SimCode: time 1.503e-06/2.09, allocations: 3.938 kB / 1.306 GB, free: 101.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03781/2.128, allocations: 28.15 MB / 1.334 GB, free: 73.97 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001294/2.128, allocations: 234 kB / 1.334 GB, free: 73.66 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.915/5.043, allocations: 0 / 1.334 GB, free: 73.66 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)