Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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 Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.69/1.69, allocations: 285.6 MB / 293.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001278/0.001279, allocations: 188.8 kB / 361.4 MB, free: 6.707 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.3 MB / 0.62 GB, free: 11.62 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009676/0.0009679, allocations: 89.8 kB / 0.733 GB, free: 44.17 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.56e-05/2.535e-05, allocations: 4 kB / 0.8518 GB, free: 2.633 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8145/0.8145, allocations: 115.3 MB / 0.9645 GB, free: 78.79 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.234/2.048, allocations: 402 MB / 1.357 GB, free: 164.6 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/2.049, allocations: 90.83 kB / 1.357 GB, free: 164.6 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.424/3.472, allocations: 299 MB / 1.649 GB, free: 238.2 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.565e-06/3.472, allocations: 4.406 kB / 1.649 GB, free: 238.2 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.00019/3.473, allocations: 37.42 kB / 1.649 GB, free: 238.2 MB / 0.9323 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.004339/3.477, allocations: 1.242 MB / 1.65 GB, free: 237.6 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/3.477, allocations: 8.969 kB / 1.65 GB, free: 237.6 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007462/3.478, allocations: 115.6 kB / 1.65 GB, free: 237.6 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/3.48, allocations: 0.664 MB / 1.651 GB, free: 237.3 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.919e-05/3.48, allocations: 22.41 kB / 1.651 GB, free: 237.3 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002894/3.481, allocations: 38.5 kB / 1.651 GB, free: 237.3 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001183/3.482, allocations: 401 kB / 1.652 GB, free: 237.3 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/3.483, allocations: 0.5733 MB / 1.652 GB, free: 237.2 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/3.483, allocations: 1.219 kB / 1.652 GB, free: 237.2 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.665e-05/3.483, allocations: 2.594 kB / 1.652 GB, free: 237.2 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/3.483, allocations: 14.03 kB / 1.652 GB, free: 237.2 MB / 0.9323 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.005465/3.489, allocations: 2.47 MB / 1.655 GB, free: 235.9 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007168/3.49, allocations: 339.5 kB / 1.655 GB, free: 235.9 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003232/3.49, allocations: 184.3 kB / 1.655 GB, free: 235.9 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003156/3.49, allocations: 340.7 kB / 1.655 GB, free: 235.5 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005418/3.491, allocations: 325.4 kB / 1.656 GB, free: 235.4 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 4.148e-06/3.491, allocations: 0 / 1.656 GB, free: 235.4 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.002197/3.493, allocations: 0.6071 MB / 1.656 GB, free: 235.3 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/3.493, allocations: 242 kB / 1.656 GB, free: 235 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/3.495, allocations: 0.5864 MB / 1.657 GB, free: 234.9 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001377/3.495, allocations: 29.27 kB / 1.657 GB, free: 234.9 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005103/3.495, allocations: 446.1 kB / 1.658 GB, free: 234.7 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/3.495, allocations: 118.3 kB / 1.658 GB, free: 234.6 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.703e-05/3.496, allocations: 3.719 kB / 1.658 GB, free: 234.6 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 8.678e-05/3.496, allocations: 322.1 kB / 1.658 GB, free: 234.3 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000379/3.496, allocations: 191.9 kB / 1.658 GB, free: 234.3 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005329/3.497, allocations: 385.6 kB / 1.658 GB, free: 234.1 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/3.498, allocations: 315.8 kB / 1.659 GB, free: 234.1 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/3.498, allocations: 0.9688 kB / 1.659 GB, free: 234.1 MB / 0.9323 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00221/3.5, allocations: 0.758 MB / 1.66 GB, free: 234 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.000339/3.5, allocations: 1.08 MB / 1.661 GB, free: 232.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/3.5, allocations: 2.094 kB / 1.661 GB, free: 232.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.944e-05/3.5, allocations: 8.281 kB / 1.661 GB, free: 232.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/3.502, allocations: 163.3 kB / 1.661 GB, free: 232.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009135/3.503, allocations: 1.801 MB / 1.663 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/3.504, allocations: 102.1 kB / 1.663 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/3.504, allocations: 34.77 kB / 1.663 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/3.504, allocations: 3.812 kB / 1.663 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001977/3.506, allocations: 0.6394 MB / 1.663 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/3.506, allocations: 2.375 kB / 1.663 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/3.506, allocations: 6.344 kB / 1.663 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006263/3.507, allocations: 135.9 kB / 1.663 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.926e-05/3.507, allocations: 12.38 kB / 1.663 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/3.508, allocations: 93.83 kB / 1.664 GB, free: 231.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/3.508, allocations: 34.31 kB / 1.664 GB, free: 231.1 MB / 0.9323 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.0003298/3.508, allocations: 165.4 kB / 1.664 GB, free: 230.9 MB / 0.9323 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002039/3.51, allocations: 0.6053 MB / 1.664 GB, free: 230.9 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002932/3.511, allocations: 93.69 kB / 1.664 GB, free: 230.8 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002191/3.513, allocations: 0.7042 MB / 1.665 GB, free: 230.8 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/3.513, allocations: 7.312 kB / 1.665 GB, free: 230.8 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/3.513, allocations: 0 / 1.665 GB, free: 230.8 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/3.513, allocations: 5.406 kB / 1.665 GB, free: 230.8 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003647/3.517, allocations: 1.52 MB / 1.667 GB, free: 230.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/3.517, allocations: 1.344 kB / 1.667 GB, free: 230.3 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005651/3.517, allocations: 102.5 kB / 1.667 GB, free: 230.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.955e-05/3.517, allocations: 5.781 kB / 1.667 GB, free: 230.3 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.95e-05/3.517, allocations: 11.53 kB / 1.667 GB, free: 230.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000684/3.518, allocations: 1.771 MB / 1.668 GB, free: 228.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/3.518, allocations: 1.031 kB / 1.668 GB, free: 228.6 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/3.52, allocations: 1.217 MB / 1.67 GB, free: 228.1 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006517/3.521, allocations: 218.8 kB / 1.67 GB, free: 228 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003472/3.521, allocations: 8.281 kB / 1.67 GB, free: 228 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009163/3.522, allocations: 70 kB / 1.67 GB, free: 228 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/3.523, allocations: 48.3 kB / 1.67 GB, free: 228 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.197e-05/3.523, allocations: 24.92 kB / 1.67 GB, free: 228 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0009301/3.524, allocations: 452.8 kB / 1.67 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of sort global known variables: time 3.4e-07/3.524, allocations: 0 / 1.67 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002846/3.526, allocations: 495.9 kB / 1.671 GB, free: 227.8 MB / 0.9323 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.004089/3.531, allocations: 2.322 MB / 1.673 GB, free: 226.5 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.002372/3.533, allocations: 0.9239 MB / 1.674 GB, free: 226.4 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/3.533, allocations: 0 / 1.674 GB, free: 226.4 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0005673/3.534, allocations: 322.2 kB / 1.674 GB, free: 226.3 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002245/3.536, allocations: 310.2 kB / 1.675 GB, free: 226.3 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004018/3.54, allocations: 1.249 MB / 1.676 GB, free: 225.9 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005114/3.54, allocations: 1.016 MB / 1.677 GB, free: 225.2 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.001097/3.542, allocations: 184.4 kB / 1.677 GB, free: 225.1 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004358/3.542, allocations: 325.7 kB / 1.677 GB, free: 225.1 MB / 0.9323 GB Notification: Performance of SimCode: time 1.874e-06/3.542, allocations: 0 / 1.677 GB, free: 225.1 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05617/3.598, allocations: 22.82 MB / 1.7 GB, free: 224.6 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002527/3.599, allocations: 189.9 kB / 1.7 GB, free: 224.4 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.132/6.73, allocations: 0 / 1.7 GB, free: 224.4 MB / 0.9323 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)