Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.434/2.434, allocations: 393.5 MB / 408.4 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 171 kB / 0.4901 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.702/1.702, allocations: 223.1 MB / 0.7992 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 90.86 kB / 0.9396 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003594, allocations: 7.156 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3128, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.038/1.351, allocations: 401.7 MB / 1.622 GB, free: 11.2 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/1.352, allocations: 96.25 kB / 1.622 GB, free: 11.14 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.279/2.631, allocations: 308.2 MB / 1.923 GB, free: 353.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.352e-06/2.631, allocations: 0 / 1.923 GB, free: 353.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 6.736e-05/2.631, allocations: 23.09 kB / 1.923 GB, free: 353.3 MB / 1.167 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.002432/2.633, allocations: 1.416 MB / 1.924 GB, free: 352.6 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/2.633, allocations: 14.34 kB / 1.924 GB, free: 352.6 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/2.633, allocations: 100.5 kB / 1.924 GB, free: 352.6 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/2.634, allocations: 124.2 kB / 1.924 GB, free: 352.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/2.635, allocations: 0.6743 MB / 1.925 GB, free: 352.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/2.635, allocations: 47.62 kB / 1.925 GB, free: 352.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.418e-05/2.635, allocations: 70.41 kB / 1.925 GB, free: 352.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009247/2.636, allocations: 0.6843 MB / 1.926 GB, free: 352.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/2.636, allocations: 0 / 1.926 GB, free: 352.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.282e-05/2.636, allocations: 23.81 kB / 1.926 GB, free: 352.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/2.636, allocations: 19.08 kB / 1.926 GB, free: 352.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007159/2.637, allocations: 472.5 kB / 1.926 GB, free: 352.1 MB / 1.167 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.003157/2.64, allocations: 2.609 MB / 1.929 GB, free: 350.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007617/2.641, allocations: 419.8 kB / 1.929 GB, free: 350.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002529/2.641, allocations: 343.9 kB / 1.929 GB, free: 350.3 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000474/2.641, allocations: 361.1 kB / 1.93 GB, free: 350.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=37): time 1.883e-06/2.641, allocations: 0 / 1.93 GB, free: 350.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=37): time 0.001501/2.643, allocations: 0.8758 MB / 1.931 GB, free: 350 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/2.643, allocations: 245.4 kB / 1.931 GB, free: 349.7 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007835/2.644, allocations: 0.7325 MB / 1.932 GB, free: 349.6 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 5.815e-05/2.644, allocations: 40.3 kB / 1.932 GB, free: 349.6 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/2.644, allocations: 439 kB / 1.932 GB, free: 349.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/2.644, allocations: 115.4 kB / 1.932 GB, free: 349.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.541e-05/2.644, allocations: 12.53 kB / 1.932 GB, free: 349.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.292e-05/2.644, allocations: 339.2 kB / 1.933 GB, free: 349 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004049/2.645, allocations: 219.2 kB / 1.933 GB, free: 349 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/2.645, allocations: 429.9 kB / 1.933 GB, free: 348.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004779/2.646, allocations: 290.5 kB / 1.933 GB, free: 348.8 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/2.646, allocations: 3.312 kB / 1.933 GB, free: 348.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001355/2.647, allocations: 0.8003 MB / 1.934 GB, free: 348.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002539/2.647, allocations: 1.082 MB / 1.935 GB, free: 347.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/2.647, allocations: 3.875 kB / 1.935 GB, free: 347.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/2.647, allocations: 7.234 kB / 1.935 GB, free: 347.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008838/2.648, allocations: 158.2 kB / 1.935 GB, free: 347.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007213/2.649, allocations: 1.778 MB / 1.937 GB, free: 345.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008961/2.65, allocations: 134.4 kB / 1.937 GB, free: 345.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.111e-05/2.65, allocations: 43.14 kB / 1.937 GB, free: 345.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/2.65, allocations: 3.125 kB / 1.937 GB, free: 345.7 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001274/2.651, allocations: 0.7099 MB / 1.938 GB, free: 345.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/2.651, allocations: 3.844 kB / 1.938 GB, free: 345.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/2.651, allocations: 9.797 kB / 1.938 GB, free: 345.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005133/2.652, allocations: 134.6 kB / 1.938 GB, free: 345.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/2.652, allocations: 6.969 kB / 1.938 GB, free: 345.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008877/2.653, allocations: 120.5 kB / 1.938 GB, free: 345.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.3e-05/2.653, allocations: 33.28 kB / 1.938 GB, free: 345.7 MB / 1.167 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.0006013/2.653, allocations: 351.6 kB / 1.939 GB, free: 345.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/2.654, allocations: 97.77 kB / 1.939 GB, free: 345.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/2.655, allocations: 0.7522 MB / 1.939 GB, free: 345.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/2.655, allocations: 3.719 kB / 1.939 GB, free: 345.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/2.655, allocations: 0 / 1.939 GB, free: 345.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/2.655, allocations: 7.844 kB / 1.939 GB, free: 345.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/2.658, allocations: 1.618 MB / 1.941 GB, free: 344.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/2.658, allocations: 3.969 kB / 1.941 GB, free: 344.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/2.658, allocations: 99.98 kB / 1.941 GB, free: 344.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/2.658, allocations: 3.75 kB / 1.941 GB, free: 344.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.867e-05/2.658, allocations: 17.77 kB / 1.941 GB, free: 344.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005582/2.659, allocations: 1.767 MB / 1.943 GB, free: 343 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/2.659, allocations: 6.719 kB / 1.943 GB, free: 343 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/2.66, allocations: 1.278 MB / 1.944 GB, free: 342.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003958/2.661, allocations: 248 kB / 1.944 GB, free: 342.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/2.661, allocations: 13.44 kB / 1.944 GB, free: 342.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006112/2.661, allocations: 75.2 kB / 1.944 GB, free: 342.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/2.662, allocations: 42.89 kB / 1.945 GB, free: 342.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.482e-05/2.662, allocations: 27.64 kB / 1.945 GB, free: 342.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0006903/2.662, allocations: 0.5679 MB / 1.945 GB, free: 342.3 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.5e-07/2.662, allocations: 0 / 1.945 GB, free: 342.3 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001592/2.664, allocations: 0.4964 MB / 1.946 GB, free: 342.2 MB / 1.167 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.002671/2.667, allocations: 2.382 MB / 1.948 GB, free: 340.9 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002072/2.669, allocations: 1.027 MB / 1.949 GB, free: 340.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/2.669, allocations: 0 / 1.949 GB, free: 340.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.000587/2.669, allocations: 366.3 kB / 1.949 GB, free: 340.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/2.671, allocations: 364.4 kB / 1.95 GB, free: 340.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004571/2.676, allocations: 3.927 MB / 1.953 GB, free: 337.8 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005398/2.676, allocations: 1.022 MB / 1.954 GB, free: 337.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0008096/2.677, allocations: 159.6 kB / 1.955 GB, free: 337.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004214/2.678, allocations: 340.9 kB / 1.955 GB, free: 337.1 MB / 1.167 GB Notification: Performance of SimCode: time 9.92e-07/2.678, allocations: 0 / 1.955 GB, free: 337.1 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04922/2.727, allocations: 25.29 MB / 1.98 GB, free: 334.8 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/2.727, allocations: 260.8 kB / 1.98 GB, free: 334.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.144/5.872, allocations: 0 / 1.98 GB, free: 334.4 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat does not exist to compare? outputFormat=mat