Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.769/1.769, allocations: 289.7 MB / 302.3 MB, free: 2.156 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.001154/0.001154, allocations: 183.1 kB / 371.6 MB, free: 3.352 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.884/1.884, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.001065/0.001065, allocations: 98.5 kB / 0.745 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.379e-05/4.383e-05, allocations: 7.984 kB / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2958, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.268/1.563, allocations: 403.6 MB / 1.374 GB, free: 9.266 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003482/1.564, allocations: 97.3 kB / 1.374 GB, free: 9.215 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.555/3.119, allocations: 301.3 MB / 1.668 GB, free: 96.61 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.196e-06/3.119, allocations: 0 / 1.668 GB, free: 96.61 MB / 0.948 GB Notification: Performance of Transformations before backend: time 9.102e-05/3.119, allocations: 24 kB / 1.668 GB, free: 96.59 MB / 0.948 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.002675/3.122, allocations: 1.253 MB / 1.67 GB, free: 95.29 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/3.122, allocations: 8.031 kB / 1.67 GB, free: 95.28 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000124/3.122, allocations: 98.52 kB / 1.67 GB, free: 95.17 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002259/3.122, allocations: 114.7 kB / 1.67 GB, free: 95.06 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/3.124, allocations: 0.6671 MB / 1.671 GB, free: 94.35 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.98e-05/3.124, allocations: 49.31 kB / 1.671 GB, free: 94.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.986e-05/3.124, allocations: 64 kB / 1.671 GB, free: 94.24 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009304/3.125, allocations: 0.6547 MB / 1.671 GB, free: 93.55 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/3.125, allocations: 3.938 kB / 1.671 GB, free: 93.54 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.485e-05/3.125, allocations: 28 kB / 1.671 GB, free: 93.52 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/3.125, allocations: 15.95 kB / 1.671 GB, free: 93.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006275/3.125, allocations: 425 kB / 1.672 GB, free: 93.09 MB / 0.948 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.003316/3.129, allocations: 2.604 MB / 1.674 GB, free: 90.34 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004896/3.129, allocations: 335.2 kB / 1.675 GB, free: 90.01 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/3.13, allocations: 196.8 kB / 1.675 GB, free: 89.81 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00031/3.13, allocations: 348.4 kB / 1.675 GB, free: 89.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000405/3.13, allocations: 321.7 kB / 1.675 GB, free: 89.05 MB / 0.948 GB Notification: Performance of pre-optimization done (n=37): time 3.216e-06/3.13, allocations: 0 / 1.675 GB, free: 89.05 MB / 0.948 GB Notification: Performance of matching and sorting (n=37): time 0.001062/3.131, allocations: 0.5744 MB / 1.676 GB, free: 88.46 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.128e-05/3.131, allocations: 243.6 kB / 1.676 GB, free: 88.17 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007668/3.132, allocations: 0.7182 MB / 1.677 GB, free: 87.43 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 5.85e-05/3.132, allocations: 37.7 kB / 1.677 GB, free: 87.38 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/3.133, allocations: 444.8 kB / 1.677 GB, free: 86.95 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.604e-05/3.133, allocations: 118.3 kB / 1.677 GB, free: 86.83 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.069e-05/3.133, allocations: 12 kB / 1.677 GB, free: 86.82 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.052e-05/3.133, allocations: 333.8 kB / 1.678 GB, free: 86.48 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/3.133, allocations: 197.3 kB / 1.678 GB, free: 86.29 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004002/3.134, allocations: 401.6 kB / 1.678 GB, free: 85.82 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003495/3.134, allocations: 254.2 kB / 1.679 GB, free: 85.57 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/3.134, allocations: 0 / 1.679 GB, free: 85.57 MB / 0.948 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001069/3.135, allocations: 0.7447 MB / 1.679 GB, free: 84.81 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000251/3.135, allocations: 1.078 MB / 1.68 GB, free: 83.64 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/3.135, allocations: 4 kB / 1.68 GB, free: 83.64 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-05/3.135, allocations: 12 kB / 1.68 GB, free: 83.63 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009388/3.136, allocations: 155.7 kB / 1.681 GB, free: 83.48 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007484/3.137, allocations: 1.785 MB / 1.682 GB, free: 81.62 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/3.138, allocations: 135.3 kB / 1.682 GB, free: 81.49 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/3.138, allocations: 35.98 kB / 1.682 GB, free: 81.45 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/3.138, allocations: 4 kB / 1.682 GB, free: 81.45 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001032/3.139, allocations: 0.6503 MB / 1.683 GB, free: 80.79 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/3.139, allocations: 0 / 1.683 GB, free: 80.79 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/3.139, allocations: 8 kB / 1.683 GB, free: 80.79 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005195/3.14, allocations: 131.8 kB / 1.683 GB, free: 80.66 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/3.14, allocations: 8.344 kB / 1.683 GB, free: 80.65 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008773/3.141, allocations: 123.4 kB / 1.683 GB, free: 80.53 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.186e-05/3.141, allocations: 32 kB / 1.683 GB, free: 80.5 MB / 0.948 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.0002662/3.141, allocations: 173.1 kB / 1.684 GB, free: 80.32 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/3.141, allocations: 106.7 kB / 1.684 GB, free: 80.21 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/3.143, allocations: 0.7003 MB / 1.684 GB, free: 79.49 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/3.143, allocations: 12 kB / 1.684 GB, free: 79.48 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/3.143, allocations: 0 / 1.684 GB, free: 79.48 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/3.143, allocations: 0 / 1.684 GB, free: 79.48 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002234/3.145, allocations: 1.559 MB / 1.686 GB, free: 77.85 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/3.145, allocations: 0 / 1.686 GB, free: 77.85 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000463/3.145, allocations: 107.9 kB / 1.686 GB, free: 77.75 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.057e-05/3.145, allocations: 4 kB / 1.686 GB, free: 77.74 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/3.145, allocations: 12 kB / 1.686 GB, free: 77.73 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007299/3.146, allocations: 1.774 MB / 1.688 GB, free: 75.89 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/3.146, allocations: 0 / 1.688 GB, free: 75.89 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/3.148, allocations: 1.196 MB / 1.689 GB, free: 74.63 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004387/3.148, allocations: 235.7 kB / 1.689 GB, free: 74.38 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/3.148, allocations: 16 kB / 1.689 GB, free: 74.37 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006136/3.149, allocations: 75.89 kB / 1.689 GB, free: 74.29 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/3.149, allocations: 51.86 kB / 1.689 GB, free: 74.24 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.043e-05/3.149, allocations: 27.98 kB / 1.689 GB, free: 74.21 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0006982/3.15, allocations: 0.5475 MB / 1.69 GB, free: 73.65 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.41e-07/3.15, allocations: 0 / 1.69 GB, free: 73.65 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001975/3.152, allocations: 0.4953 MB / 1.69 GB, free: 73.16 MB / 0.948 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.002594/3.154, allocations: 2.307 MB / 1.693 GB, free: 70.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001828/3.156, allocations: 0.9694 MB / 1.694 GB, free: 69.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/3.156, allocations: 1.375 kB / 1.694 GB, free: 69.8 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000472/3.157, allocations: 331.9 kB / 1.694 GB, free: 69.46 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/3.159, allocations: 369.6 kB / 1.694 GB, free: 69.1 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/3.162, allocations: 1.311 MB / 1.695 GB, free: 67.73 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004373/3.162, allocations: 1.018 MB / 1.696 GB, free: 66.69 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0009093/3.163, allocations: 217 kB / 1.697 GB, free: 66.47 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003304/3.163, allocations: 327.3 kB / 1.697 GB, free: 66.15 MB / 0.948 GB Notification: Performance of SimCode: time 1.122e-06/3.163, allocations: 0 / 1.697 GB, free: 66.15 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05192/3.215, allocations: 27.44 MB / 1.724 GB, free: 38.96 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/3.216, allocations: 229.6 kB / 1.724 GB, free: 38.73 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.044/6.26, allocations: 0 / 1.724 GB, free: 38.73 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)