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.7231/0.7231, allocations: 127.4 MB / 134.9 MB, free: 3.699 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.001093/0.001093, allocations: 176.9 kB / 164.7 MB, free: 6.523 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.655/1.655, allocations: 205.2 MB / 399.5 MB, free: 5.848 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.0009484/0.0009483, allocations: 86.47 kB / 476.7 MB, free: 8.57 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 1.811e-05/1.833e-05, allocations: 4 kB / 0.5467 GB, free: 60.36 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1673, allocations: 76.77 MB / 0.6216 GB, free: 15.52 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.139/1.307, allocations: 362.7 MB / 0.9758 GB, free: 179.9 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/1.307, allocations: 95.94 kB / 0.9759 GB, free: 179.8 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.9341/2.241, allocations: 294.8 MB / 1.264 GB, free: 132.8 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.973e-06/2.241, allocations: 0 / 1.264 GB, free: 132.8 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.96e-05/2.241, allocations: 31.69 kB / 1.264 GB, free: 132.8 MB / 0.6355 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.002202/2.244, allocations: 1.22 MB / 1.265 GB, free: 131.5 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/2.244, allocations: 20.02 kB / 1.265 GB, free: 131.5 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007223/2.244, allocations: 178.5 kB / 1.265 GB, free: 131.3 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/2.245, allocations: 0.6642 MB / 1.266 GB, free: 130.6 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/2.245, allocations: 16 kB / 1.266 GB, free: 130.6 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-05/2.246, allocations: 47.95 kB / 1.266 GB, free: 130.6 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005962/2.246, allocations: 406.5 kB / 1.266 GB, free: 130.2 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00073/2.247, allocations: 0.5662 MB / 1.267 GB, free: 129.5 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/2.247, allocations: 4 kB / 1.267 GB, free: 129.5 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.822e-05/2.247, allocations: 0 / 1.267 GB, free: 129.5 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/2.247, allocations: 16 kB / 1.267 GB, free: 129.5 MB / 0.6355 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.003258/2.25, allocations: 2.81 MB / 1.27 GB, free: 126.6 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004515/2.251, allocations: 314.8 kB / 1.27 GB, free: 126.2 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/2.251, allocations: 173.3 kB / 1.27 GB, free: 126.1 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001813/2.251, allocations: 104.4 kB / 1.27 GB, free: 125.9 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003233/2.251, allocations: 270.7 kB / 1.27 GB, free: 125.7 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=33): time 2.084e-06/2.252, allocations: 0 / 1.27 GB, free: 125.7 MB / 0.6355 GB Notification: Performance of matching and sorting (n=33): time 0.002781/2.254, allocations: 0.8064 MB / 1.271 GB, free: 124.9 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/2.254, allocations: 140.7 kB / 1.271 GB, free: 124.7 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005713/2.255, allocations: 0.5905 MB / 1.272 GB, free: 124.1 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.813e-05/2.255, allocations: 29.7 kB / 1.272 GB, free: 124 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002317/2.255, allocations: 459.7 kB / 1.272 GB, free: 123.6 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.371e-05/2.255, allocations: 98.56 kB / 1.272 GB, free: 123.5 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/2.255, allocations: 4 kB / 1.272 GB, free: 123.5 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 5.74e-05/2.255, allocations: 326 kB / 1.273 GB, free: 123.2 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/2.256, allocations: 233.1 kB / 1.273 GB, free: 122.9 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003612/2.256, allocations: 405.4 kB / 1.273 GB, free: 122.5 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/2.257, allocations: 385.8 kB / 1.274 GB, free: 122.1 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/2.257, allocations: 0 / 1.274 GB, free: 122.1 MB / 0.6355 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00171/2.259, allocations: 0.8641 MB / 1.275 GB, free: 121.2 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002226/2.259, allocations: 1.082 MB / 1.276 GB, free: 120.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/2.259, allocations: 7.953 kB / 1.276 GB, free: 120 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/2.259, allocations: 4 kB / 1.276 GB, free: 120 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002557/2.262, allocations: 431.5 kB / 1.276 GB, free: 119.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/2.263, allocations: 1.934 MB / 1.278 GB, free: 117.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/2.264, allocations: 155.4 kB / 1.278 GB, free: 117.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.993e-05/2.265, allocations: 35.98 kB / 1.278 GB, free: 117.4 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/2.265, allocations: 4 kB / 1.278 GB, free: 117.4 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001591/2.266, allocations: 0.7267 MB / 1.279 GB, free: 116.7 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/2.266, allocations: 352 / 1.279 GB, free: 116.7 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.125e-06/2.266, allocations: 12 kB / 1.279 GB, free: 116.7 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006815/2.267, allocations: 163.8 kB / 1.279 GB, free: 116.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/2.267, allocations: 7.984 kB / 1.279 GB, free: 116.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008388/2.268, allocations: 119.5 kB / 1.279 GB, free: 116.4 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.397e-05/2.268, allocations: 39.92 kB / 1.279 GB, free: 116.4 MB / 0.6355 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.0001986/2.268, allocations: 166.3 kB / 1.279 GB, free: 116.2 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001415/2.269, allocations: 0.6745 MB / 1.28 GB, free: 115.5 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.527e-05/2.27, allocations: 82.97 kB / 1.28 GB, free: 115.4 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/2.271, allocations: 0.7051 MB / 1.281 GB, free: 114.7 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/2.271, allocations: 4 kB / 1.281 GB, free: 114.7 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/2.271, allocations: 0 / 1.281 GB, free: 114.7 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/2.271, allocations: 7.953 kB / 1.281 GB, free: 114.7 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002703/2.274, allocations: 1.398 MB / 1.282 GB, free: 113.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/2.274, allocations: 4 kB / 1.282 GB, free: 113.3 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002374/2.276, allocations: 407.5 kB / 1.283 GB, free: 112.9 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.697e-06/2.276, allocations: 0 / 1.283 GB, free: 112.9 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.004e-05/2.276, allocations: 19.94 kB / 1.283 GB, free: 112.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004356/2.281, allocations: 4.169 MB / 1.287 GB, free: 108.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/2.281, allocations: 0 / 1.287 GB, free: 108.3 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/2.283, allocations: 1.045 MB / 1.288 GB, free: 107.3 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003511/2.283, allocations: 219.9 kB / 1.288 GB, free: 107.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/2.283, allocations: 11.98 kB / 1.288 GB, free: 107 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007754/2.284, allocations: 99.91 kB / 1.288 GB, free: 106.9 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/2.284, allocations: 51.86 kB / 1.288 GB, free: 106.9 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.167e-05/2.284, allocations: 19.98 kB / 1.288 GB, free: 106.9 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0005404/2.285, allocations: 455.1 kB / 1.288 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.61e-07/2.285, allocations: 0 / 1.288 GB, free: 106.4 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001657/2.287, allocations: 482.9 kB / 1.289 GB, free: 106 MB / 0.6355 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.002771/2.289, allocations: 1.852 MB / 1.291 GB, free: 104.1 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.003117/2.293, allocations: 1.211 MB / 1.292 GB, free: 102.9 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/2.293, allocations: 4.062 kB / 1.292 GB, free: 102.9 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.002101/2.295, allocations: 0.5459 MB / 1.292 GB, free: 102.3 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/2.297, allocations: 301.1 kB / 1.293 GB, free: 102 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/2.299, allocations: 1.201 MB / 1.294 GB, free: 100.8 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/2.3, allocations: 1.002 MB / 1.295 GB, free: 99.75 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0008899/2.301, allocations: 192.3 kB / 1.295 GB, free: 99.56 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003588/2.301, allocations: 319.3 kB / 1.295 GB, free: 99.25 MB / 0.6355 GB Notification: Performance of SimCode: time 1.012e-06/2.301, allocations: 0 / 1.295 GB, free: 99.25 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04637/2.347, allocations: 23.3 MB / 1.318 GB, free: 76.11 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/2.348, allocations: 193.3 kB / 1.318 GB, free: 75.91 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.76/5.108, allocations: 0 / 1.318 GB, free: 75.91 MB / 0.6355 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)