Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.783/0.783, allocations: 143.3 MB / 158.3 MB, free: 5.781 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 184 kB / 191.5 MB, free: 5.758 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 223.2 MB / 447.7 MB, free: 4.832 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008363/0.0008364, allocations: 87.78 kB / 0.5187 GB, free: 1.188 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001837/0.001837, allocations: 272.1 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004187/0.0004187, allocations: 17.5 kB / 0.6929 GB, free: 59.61 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1489, allocations: 82.79 MB / 0.7738 GB, free: 13.76 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7128/0.8617, allocations: 360.3 MB / 1.126 GB, free: 10.01 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.8621, allocations: 94.19 kB / 1.126 GB, free: 9.957 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.9758/1.838, allocations: 308.3 MB / 1.427 GB, free: 25.67 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.813e-06/1.838, allocations: 0 / 1.427 GB, free: 25.67 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001138/1.838, allocations: 28 kB / 1.427 GB, free: 25.64 MB / 0.7136 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.00316/1.841, allocations: 1.415 MB / 1.428 GB, free: 24.17 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/1.841, allocations: 8.031 kB / 1.428 GB, free: 24.16 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002587/1.842, allocations: 98.52 kB / 1.428 GB, free: 24.06 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003079/1.842, allocations: 118.6 kB / 1.428 GB, free: 23.94 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/1.843, allocations: 0.6872 MB / 1.429 GB, free: 23.21 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.052e-05/1.843, allocations: 49.31 kB / 1.429 GB, free: 23.16 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/1.844, allocations: 68 kB / 1.429 GB, free: 23.09 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/1.845, allocations: 0.6859 MB / 1.43 GB, free: 22.37 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/1.845, allocations: 4 kB / 1.43 GB, free: 22.36 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.404e-05/1.845, allocations: 24 kB / 1.43 GB, free: 22.34 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/1.845, allocations: 16 kB / 1.43 GB, free: 22.32 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008741/1.846, allocations: 468.9 kB / 1.43 GB, free: 21.87 MB / 0.7136 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.003381/1.849, allocations: 2.608 MB / 1.433 GB, free: 19.12 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000716/1.85, allocations: 413.4 kB / 1.433 GB, free: 18.71 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002232/1.85, allocations: 348.4 kB / 1.434 GB, free: 18.3 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000468/1.85, allocations: 361.5 kB / 1.434 GB, free: 17.91 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=37): time 2.535e-06/1.85, allocations: 0 / 1.434 GB, free: 17.91 MB / 0.7136 GB Notification: Performance of matching and sorting (n=37): time 0.001436/1.852, allocations: 0.8752 MB / 1.435 GB, free: 17.01 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/1.852, allocations: 243.8 kB / 1.435 GB, free: 16.71 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007764/1.853, allocations: 0.7341 MB / 1.436 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.631e-05/1.853, allocations: 45.7 kB / 1.436 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002632/1.853, allocations: 440.2 kB / 1.436 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.509e-05/1.853, allocations: 122.3 kB / 1.436 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.998e-05/1.853, allocations: 12 kB / 1.436 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.461e-05/1.853, allocations: 330 kB / 1.437 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004205/1.854, allocations: 229.1 kB / 1.437 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004626/1.854, allocations: 420.7 kB / 1.437 GB, free: 14.3 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004245/1.855, allocations: 291.6 kB / 1.438 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/1.855, allocations: 0 / 1.438 GB, free: 14.01 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001206/1.856, allocations: 0.7954 MB / 1.438 GB, free: 13.21 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.000218/1.856, allocations: 1.086 MB / 1.439 GB, free: 12.03 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/1.856, allocations: 0 / 1.439 GB, free: 12.03 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/1.856, allocations: 8 kB / 1.439 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008514/1.857, allocations: 155.8 kB / 1.44 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006982/1.858, allocations: 1.785 MB / 1.441 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008554/1.859, allocations: 135.5 kB / 1.441 GB, free: 9.883 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.952e-05/1.859, allocations: 31.94 kB / 1.441 GB, free: 9.852 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/1.859, allocations: 4 kB / 1.441 GB, free: 9.848 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001102/1.86, allocations: 0.705 MB / 1.442 GB, free: 9.137 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/1.86, allocations: 11.95 kB / 1.442 GB, free: 9.125 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.422e-06/1.86, allocations: 4 kB / 1.442 GB, free: 9.121 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004964/1.86, allocations: 144.1 kB / 1.442 GB, free: 8.98 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/1.86, allocations: 4 kB / 1.442 GB, free: 8.977 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007777/1.861, allocations: 119.3 kB / 1.442 GB, free: 8.859 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-05/1.861, allocations: 28 kB / 1.442 GB, free: 8.832 MB / 0.7136 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 () * Number of clocked 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.0004776/1.862, allocations: 353.2 kB / 1.443 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/1.862, allocations: 98.86 kB / 1.443 GB, free: 8.375 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/1.863, allocations: 0.752 MB / 1.444 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/1.863, allocations: 8 kB / 1.444 GB, free: 7.598 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/1.863, allocations: 0 / 1.444 GB, free: 7.598 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/1.863, allocations: 11.92 kB / 1.444 GB, free: 7.586 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/1.865, allocations: 1.63 MB / 1.445 GB, free: 5.883 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/1.865, allocations: 0 / 1.445 GB, free: 5.883 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004143/1.866, allocations: 99.86 kB / 1.445 GB, free: 5.785 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/1.866, allocations: 4 kB / 1.445 GB, free: 5.781 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/1.866, allocations: 20.11 kB / 1.445 GB, free: 5.762 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004767/1.866, allocations: 1.77 MB / 1.447 GB, free: 3.922 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/1.866, allocations: 3.938 kB / 1.447 GB, free: 3.918 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/1.868, allocations: 1.271 MB / 1.448 GB, free: 2.594 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003726/1.868, allocations: 235.8 kB / 1.449 GB, free: 2.344 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/1.868, allocations: 15.95 kB / 1.449 GB, free: 2.328 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006256/1.869, allocations: 75.92 kB / 1.449 GB, free: 2.254 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/1.869, allocations: 51.86 kB / 1.449 GB, free: 2.203 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.109e-05/1.869, allocations: 20 kB / 1.449 GB, free: 2.184 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0006622/1.87, allocations: 0.5709 MB / 1.449 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.61e-07/1.87, allocations: 0 / 1.449 GB, free: 1.602 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001619/1.871, allocations: 0.4992 MB / 1.45 GB, free: 1.102 MB / 0.7136 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) * Number of clocked states: 0 () * 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.3689/2.24, allocations: 2.365 MB / 1.452 GB, free: 176 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002186/2.243, allocations: 1.02 MB / 1.453 GB, free: 175.9 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/2.243, allocations: 3.719 kB / 1.453 GB, free: 175.9 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0006273/2.243, allocations: 362.4 kB / 1.453 GB, free: 175.8 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/2.245, allocations: 369.4 kB / 1.454 GB, free: 175.8 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003696/2.249, allocations: 3.903 MB / 1.458 GB, free: 173.1 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/2.249, allocations: 1.025 MB / 1.459 GB, free: 172.4 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0006652/2.25, allocations: 154.3 kB / 1.459 GB, free: 172.3 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004192/2.25, allocations: 340.2 kB / 1.459 GB, free: 172.3 MB / 0.7136 GB Notification: Performance of SimCode: time 1.333e-06/2.25, allocations: 1.188 kB / 1.459 GB, free: 172.3 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04729/2.298, allocations: 25.33 MB / 1.484 GB, free: 172 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002745/2.298, allocations: 282.1 kB / 1.484 GB, free: 171.7 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.871/5.169, allocations: 0 / 1.484 GB, free: 171.7 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)