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.27/2.27, allocations: 390.3 MB / 402.8 MB, free: 6.695 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.001133/0.001133, allocations: 173 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 221.3 MB / 0.7915 GB, free: 5.395 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.001071/0.001071, allocations: 87.81 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.563e-05/3.574e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2671, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.111/1.379, allocations: 401.6 MB / 1.611 GB, free: 0.5312 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/1.379, allocations: 86.52 kB / 1.611 GB, free: 500 kB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 1.306/2.684, allocations: 307.4 MB / 1.911 GB, free: 249.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.693e-06/2.684, allocations: 0 / 1.911 GB, free: 249.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.154e-05/2.685, allocations: 27.98 kB / 1.911 GB, free: 249.4 MB / 1.151 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.002492/2.687, allocations: 1.256 MB / 1.913 GB, free: 248.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/2.687, allocations: 11.97 kB / 1.913 GB, free: 248 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001197/2.687, allocations: 98.52 kB / 1.913 GB, free: 247.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001898/2.687, allocations: 118.6 kB / 1.913 GB, free: 247.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/2.689, allocations: 0.6639 MB / 1.913 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.912e-05/2.689, allocations: 49.31 kB / 1.914 GB, free: 247.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-05/2.689, allocations: 64 kB / 1.914 GB, free: 247 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009111/2.69, allocations: 0.6547 MB / 1.914 GB, free: 246.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/2.69, allocations: 11.88 kB / 1.914 GB, free: 246.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.524e-05/2.69, allocations: 24 kB / 1.914 GB, free: 246.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/2.69, allocations: 16 kB / 1.914 GB, free: 246.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000621/2.69, allocations: 429 kB / 1.915 GB, free: 245.8 MB / 1.151 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.003326/2.694, allocations: 2.608 MB / 1.917 GB, free: 243.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004778/2.694, allocations: 340.3 kB / 1.918 GB, free: 242.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002407/2.695, allocations: 188.8 kB / 1.918 GB, free: 242.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003331/2.695, allocations: 352.4 kB / 1.918 GB, free: 242.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004042/2.695, allocations: 325.4 kB / 1.918 GB, free: 241.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=37): time 1.954e-06/2.695, allocations: 0 / 1.918 GB, free: 241.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=37): time 0.0009528/2.696, allocations: 0.559 MB / 1.919 GB, free: 241.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.157e-05/2.696, allocations: 247.6 kB / 1.919 GB, free: 240.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007488/2.697, allocations: 0.7267 MB / 1.92 GB, free: 240.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.977e-05/2.697, allocations: 41.7 kB / 1.92 GB, free: 240.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/2.697, allocations: 432.4 kB / 1.92 GB, free: 239.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 8.418e-05/2.698, allocations: 118.3 kB / 1.92 GB, free: 239.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/2.698, allocations: 12.55 kB / 1.92 GB, free: 239.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.124e-05/2.698, allocations: 330 kB / 1.921 GB, free: 239.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002795/2.698, allocations: 201.2 kB / 1.921 GB, free: 239 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003744/2.698, allocations: 397.6 kB / 1.921 GB, free: 238.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000355/2.699, allocations: 258.4 kB / 1.922 GB, free: 238.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/2.699, allocations: 7.938 kB / 1.922 GB, free: 238.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009536/2.7, allocations: 0.7408 MB / 1.922 GB, free: 237.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002215/2.7, allocations: 1.079 MB / 1.923 GB, free: 236.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/2.7, allocations: 3.984 kB / 1.923 GB, free: 236.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/2.7, allocations: 8 kB / 1.923 GB, free: 236.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000902/2.701, allocations: 155.7 kB / 1.924 GB, free: 236.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007182/2.702, allocations: 1.785 MB / 1.925 GB, free: 234.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007826/2.702, allocations: 127.4 kB / 1.925 GB, free: 234.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.882e-05/2.702, allocations: 31.98 kB / 1.925 GB, free: 234.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.855e-06/2.702, allocations: 4 kB / 1.925 GB, free: 234.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008913/2.703, allocations: 0.658 MB / 1.926 GB, free: 233.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/2.703, allocations: 4 kB / 1.926 GB, free: 233.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.572e-06/2.703, allocations: 4 kB / 1.926 GB, free: 233.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004936/2.704, allocations: 131.8 kB / 1.926 GB, free: 233.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/2.704, allocations: 8 kB / 1.926 GB, free: 233.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006284/2.705, allocations: 123.7 kB / 1.926 GB, free: 233.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.057e-05/2.705, allocations: 28 kB / 1.926 GB, free: 233.3 MB / 1.151 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.0001653/2.705, allocations: 178.5 kB / 1.927 GB, free: 233.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.538e-05/2.705, allocations: 98.78 kB / 1.927 GB, free: 233 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001109/2.706, allocations: 0.7046 MB / 1.927 GB, free: 232.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/2.706, allocations: 4 kB / 1.927 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/2.706, allocations: 4 kB / 1.927 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/2.706, allocations: 11.92 kB / 1.927 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/2.708, allocations: 1.567 MB / 1.929 GB, free: 230.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/2.708, allocations: 0 / 1.929 GB, free: 230.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004071/2.708, allocations: 100 kB / 1.929 GB, free: 230.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/2.708, allocations: 7.938 kB / 1.929 GB, free: 230.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.689e-05/2.708, allocations: 15.98 kB / 1.929 GB, free: 230.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004911/2.709, allocations: 1.766 MB / 1.931 GB, free: 228.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/2.709, allocations: 0 / 1.931 GB, free: 228.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/2.71, allocations: 1.204 MB / 1.932 GB, free: 227.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002743/2.71, allocations: 235.8 kB / 1.932 GB, free: 227.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/2.71, allocations: 12 kB / 1.932 GB, free: 227.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006162/2.711, allocations: 75.89 kB / 1.932 GB, free: 227 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/2.711, allocations: 51.92 kB / 1.932 GB, free: 227 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/2.711, allocations: 20 kB / 1.932 GB, free: 227 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0005734/2.712, allocations: 0.5557 MB / 1.933 GB, free: 226.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.6e-07/2.712, allocations: 3.938 kB / 1.933 GB, free: 226.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001419/2.713, allocations: 0.4993 MB / 1.933 GB, free: 225.9 MB / 1.151 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.002127/2.715, allocations: 2.306 MB / 1.936 GB, free: 223.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001589/2.717, allocations: 0.9807 MB / 1.936 GB, free: 222.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/2.717, allocations: 0 / 1.936 GB, free: 222.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004752/2.717, allocations: 336.5 kB / 1.937 GB, free: 222.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/2.719, allocations: 367.1 kB / 1.937 GB, free: 221.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/2.722, allocations: 1.302 MB / 1.938 GB, free: 220.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004378/2.722, allocations: 1.031 MB / 1.939 GB, free: 219.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0009699/2.723, allocations: 213.1 kB / 1.94 GB, free: 219.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000363/2.724, allocations: 327.3 kB / 1.94 GB, free: 218.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.092e-06/2.724, allocations: 0 / 1.94 GB, free: 218.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05406/2.778, allocations: 27.34 MB / 1.967 GB, free: 191.9 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/2.778, allocations: 229.7 kB / 1.967 GB, free: 191.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.095/5.873, allocations: 0 / 1.967 GB, free: 191.6 MB / 1.151 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