Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.636/2.636, allocations: 284.9 MB / 292.4 MB, free: 10.55 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.001561/0.00156, allocations: 180.8 kB / 360.6 MB, free: 7.285 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.213/2.213, allocations: 205.2 MB / 0.6191 GB, free: 12.19 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.001117/0.001116, allocations: 90.03 kB / 0.7321 GB, free: 44.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.952e-05/2.949e-05, allocations: 4 kB / 0.8509 GB, free: 3.324 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.049/1.049, allocations: 115.3 MB / 0.9634 GB, free: 78.68 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.348/2.398, allocations: 401.8 MB / 1.356 GB, free: 166.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003566/2.398, allocations: 91.61 kB / 1.356 GB, free: 166.1 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.796/4.194, allocations: 299 MB / 1.648 GB, free: 238.8 MB / 0.9323 GB Notification: Performance of FrontEnd: time 3.236e-06/4.194, allocations: 4.203 kB / 1.648 GB, free: 238.8 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0001683/4.194, allocations: 24.81 kB / 1.648 GB, free: 238.8 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.004618/4.199, allocations: 1.246 MB / 1.649 GB, free: 238.2 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 6.418e-05/4.199, allocations: 9.438 kB / 1.649 GB, free: 238.2 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008161/4.2, allocations: 118 kB / 1.649 GB, free: 238.1 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002927/4.203, allocations: 0.6647 MB / 1.65 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.61e-05/4.203, allocations: 20.06 kB / 1.65 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002247/4.203, allocations: 39.88 kB / 1.65 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001343/4.204, allocations: 400.2 kB / 1.65 GB, free: 237.9 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/4.206, allocations: 0.5718 MB / 1.651 GB, free: 237.7 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.933e-05/4.206, allocations: 1.375 kB / 1.651 GB, free: 237.7 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-05/4.206, allocations: 5.359 kB / 1.651 GB, free: 237.7 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/4.206, allocations: 15.08 kB / 1.651 GB, free: 237.7 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.007265/4.213, allocations: 2.466 MB / 1.653 GB, free: 236.5 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/4.215, allocations: 335 kB / 1.654 GB, free: 236.5 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004817/4.215, allocations: 185.4 kB / 1.654 GB, free: 236.5 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004261/4.215, allocations: 349.2 kB / 1.654 GB, free: 236.1 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007906/4.216, allocations: 317.3 kB / 1.654 GB, free: 236 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=37): time 3.947e-06/4.216, allocations: 0 / 1.654 GB, free: 236 MB / 0.9323 GB Notification: Performance of matching and sorting (n=37): time 0.003015/4.219, allocations: 0.603 MB / 1.655 GB, free: 235.9 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.291e-05/4.22, allocations: 242.2 kB / 1.655 GB, free: 235.6 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/4.221, allocations: 0.5875 MB / 1.656 GB, free: 235.5 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0002632/4.221, allocations: 30.08 kB / 1.656 GB, free: 235.5 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005472/4.222, allocations: 442.9 kB / 1.656 GB, free: 235.3 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/4.222, allocations: 117.4 kB / 1.656 GB, free: 235.2 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-05/4.222, allocations: 0.9062 kB / 1.656 GB, free: 235.2 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 9.292e-05/4.222, allocations: 336.9 kB / 1.657 GB, free: 234.9 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005597/4.223, allocations: 191.6 kB / 1.657 GB, free: 234.9 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007122/4.223, allocations: 383.2 kB / 1.657 GB, free: 234.7 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/4.225, allocations: 311.8 kB / 1.658 GB, free: 234.7 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-05/4.225, allocations: 2.375 kB / 1.658 GB, free: 234.7 MB / 0.9323 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00332/4.229, allocations: 0.7601 MB / 1.658 GB, free: 234.6 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003061/4.229, allocations: 1.081 MB / 1.659 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/4.229, allocations: 5.25 kB / 1.659 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.649e-05/4.229, allocations: 5.531 kB / 1.659 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002009/4.231, allocations: 157 kB / 1.66 GB, free: 233.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/4.232, allocations: 1.799 MB / 1.661 GB, free: 231.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/4.234, allocations: 102.1 kB / 1.661 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003151/4.235, allocations: 35.64 kB / 1.661 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/4.235, allocations: 7.703 kB / 1.661 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002871/4.238, allocations: 0.636 MB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/4.238, allocations: 5.078 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/4.238, allocations: 5.406 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/4.239, allocations: 135.6 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/4.239, allocations: 11.88 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/4.241, allocations: 97.58 kB / 1.662 GB, free: 231.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002124/4.241, allocations: 33.94 kB / 1.662 GB, free: 231.7 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.0003518/4.241, allocations: 161.7 kB / 1.662 GB, free: 231.5 MB / 0.9323 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002794/4.244, allocations: 0.6199 MB / 1.663 GB, free: 231.5 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003006/4.244, allocations: 82.62 kB / 1.663 GB, free: 231.4 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003162/4.247, allocations: 0.7056 MB / 1.664 GB, free: 231.4 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.94e-05/4.248, allocations: 6.219 kB / 1.664 GB, free: 231.4 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/4.248, allocations: 1.188 kB / 1.664 GB, free: 231.4 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/4.248, allocations: 8.328 kB / 1.664 GB, free: 231.4 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004781/4.252, allocations: 1.523 MB / 1.665 GB, free: 230.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/4.252, allocations: 1.5 kB / 1.665 GB, free: 230.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000888/4.253, allocations: 100.9 kB / 1.665 GB, free: 230.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.597e-05/4.253, allocations: 2.938 kB / 1.665 GB, free: 230.9 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/4.254, allocations: 11.38 kB / 1.665 GB, free: 230.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008133/4.254, allocations: 1.769 MB / 1.667 GB, free: 229.1 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.876e-06/4.254, allocations: 4.5 kB / 1.667 GB, free: 229.1 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003559/4.258, allocations: 1.216 MB / 1.668 GB, free: 228.7 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000771/4.259, allocations: 223.3 kB / 1.669 GB, free: 228.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002357/4.259, allocations: 6.812 kB / 1.669 GB, free: 228.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/4.26, allocations: 67.94 kB / 1.669 GB, free: 228.6 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/4.261, allocations: 46.67 kB / 1.669 GB, free: 228.6 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.997e-05/4.261, allocations: 23.97 kB / 1.669 GB, free: 228.6 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0009726/4.262, allocations: 455.9 kB / 1.669 GB, free: 228.5 MB / 0.9323 GB Notification: Performance of sort global known variables: time 7.71e-07/4.262, allocations: 0 / 1.669 GB, free: 228.5 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.00304/4.265, allocations: 497.4 kB / 1.67 GB, free: 228.4 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.004948/4.27, allocations: 2.315 MB / 1.672 GB, free: 227.1 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.003367/4.273, allocations: 0.9228 MB / 1.673 GB, free: 227 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/4.273, allocations: 0 / 1.673 GB, free: 227 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001018/4.274, allocations: 322.9 kB / 1.673 GB, free: 226.9 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003501/4.278, allocations: 317.3 kB / 1.673 GB, free: 226.9 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005211/4.283, allocations: 1.248 MB / 1.675 GB, free: 226.5 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006049/4.284, allocations: 1.012 MB / 1.676 GB, free: 225.8 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.001519/4.285, allocations: 196.4 kB / 1.676 GB, free: 225.8 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007137/4.286, allocations: 322.7 kB / 1.676 GB, free: 225.7 MB / 0.9323 GB Notification: Performance of SimCode: time 1.463e-06/4.286, allocations: 0 / 1.676 GB, free: 225.7 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08922/4.375, allocations: 22.82 MB / 1.698 GB, free: 225.3 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002796/4.376, allocations: 174.3 kB / 1.699 GB, free: 225.1 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.05/8.426, allocations: 0 / 1.699 GB, free: 225.1 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)