Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.484/2.484, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001196/0.001196, allocations: 188.8 kB / 487.4 MB, free: 5.031 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.614/1.614, allocations: 221.5 MB / 0.7824 GB, free: 0.9805 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008862/0.0008863, allocations: 102.2 kB / 0.9219 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.901e-05/1.903e-05, allocations: 6.031 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2961, allocations: 142.4 MB / 1.206 GB, free: 43.89 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.143/1.439, allocations: 400.1 MB / 1.597 GB, free: 5.617 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/1.439, allocations: 95.5 kB / 1.597 GB, free: 5.566 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.248/2.687, allocations: 305.1 MB / 1.895 GB, free: 316.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.312e-06/2.687, allocations: 4 kB / 1.895 GB, free: 316.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.975e-05/2.688, allocations: 27.36 kB / 1.895 GB, free: 316.2 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.002042/2.69, allocations: 1.25 MB / 1.896 GB, free: 314.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/2.69, allocations: 8.031 kB / 1.896 GB, free: 314.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/2.69, allocations: 126.5 kB / 1.896 GB, free: 314.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/2.691, allocations: 0.6684 MB / 1.897 GB, free: 314.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/2.691, allocations: 20 kB / 1.897 GB, free: 314.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.476e-05/2.691, allocations: 40 kB / 1.897 GB, free: 314.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006057/2.692, allocations: 398.5 kB / 1.897 GB, free: 313.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000742/2.692, allocations: 0.5741 MB / 1.898 GB, free: 313.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/2.692, allocations: 3.938 kB / 1.898 GB, free: 313.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.908e-05/2.692, allocations: 3.953 kB / 1.898 GB, free: 313.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/2.692, allocations: 16 kB / 1.898 GB, free: 313 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.002808/2.695, allocations: 2.471 MB / 1.9 GB, free: 310.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004297/2.696, allocations: 339.2 kB / 1.901 GB, free: 310.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/2.696, allocations: 188.7 kB / 1.901 GB, free: 309.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002372/2.696, allocations: 347.5 kB / 1.901 GB, free: 309.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003448/2.697, allocations: 309.5 kB / 1.901 GB, free: 309.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=37): time 2.295e-06/2.697, allocations: 0 / 1.901 GB, free: 309.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=37): time 0.001373/2.698, allocations: 0.6119 MB / 1.902 GB, free: 308.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/2.698, allocations: 243.5 kB / 1.902 GB, free: 308.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005571/2.699, allocations: 0.5946 MB / 1.903 GB, free: 307.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.692e-05/2.699, allocations: 29.7 kB / 1.903 GB, free: 307.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/2.699, allocations: 447.9 kB / 1.903 GB, free: 307.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.319e-05/2.699, allocations: 110.3 kB / 1.903 GB, free: 307.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.95e-05/2.699, allocations: 0 / 1.903 GB, free: 307.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.767e-05/2.699, allocations: 334.5 kB / 1.904 GB, free: 306.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/2.699, allocations: 189.1 kB / 1.904 GB, free: 306.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/2.7, allocations: 387.2 kB / 1.904 GB, free: 306.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007648/2.7, allocations: 305.8 kB / 1.905 GB, free: 305.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/2.7, allocations: 4 kB / 1.905 GB, free: 305.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001321/2.702, allocations: 0.7625 MB / 1.905 GB, free: 305 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002018/2.702, allocations: 1.086 MB / 1.906 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/2.702, allocations: 0 / 1.906 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/2.702, allocations: 8 kB / 1.906 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009011/2.703, allocations: 157.5 kB / 1.907 GB, free: 303.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007246/2.704, allocations: 1.801 MB / 1.908 GB, free: 301.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007682/2.704, allocations: 103.7 kB / 1.908 GB, free: 301.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.564e-05/2.704, allocations: 31.98 kB / 1.908 GB, free: 301.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.819e-06/2.705, allocations: 9.359 kB / 1.908 GB, free: 301.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001174/2.706, allocations: 0.6408 MB / 1.909 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/2.706, allocations: 0 / 1.909 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.404e-06/2.706, allocations: 8.344 kB / 1.909 GB, free: 301 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004798/2.706, allocations: 131.9 kB / 1.909 GB, free: 300.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/2.706, allocations: 11.92 kB / 1.909 GB, free: 300.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000625/2.707, allocations: 99.5 kB / 1.909 GB, free: 300.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.846e-05/2.707, allocations: 32 kB / 1.909 GB, free: 300.8 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 (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.0001709/2.707, allocations: 158.5 kB / 1.909 GB, free: 300.6 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001175/2.708, allocations: 0.6136 MB / 1.91 GB, free: 300 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-05/2.708, allocations: 82.97 kB / 1.91 GB, free: 299.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/2.71, allocations: 0.7136 MB / 1.911 GB, free: 299.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/2.71, allocations: 7.984 kB / 1.911 GB, free: 299.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/2.71, allocations: 0 / 1.911 GB, free: 299.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/2.71, allocations: 4 kB / 1.911 GB, free: 299.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/2.712, allocations: 1.518 MB / 1.912 GB, free: 297.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/2.712, allocations: 11.86 kB / 1.912 GB, free: 297.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004064/2.712, allocations: 91.88 kB / 1.912 GB, free: 297.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/2.712, allocations: 4 kB / 1.912 GB, free: 297.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.475e-05/2.712, allocations: 16.11 kB / 1.912 GB, free: 297.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004796/2.713, allocations: 1.77 MB / 1.914 GB, free: 295.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/2.713, allocations: 8.125 kB / 1.914 GB, free: 295.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/2.714, allocations: 1.209 MB / 1.915 GB, free: 294.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002664/2.715, allocations: 231.8 kB / 1.916 GB, free: 294.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/2.715, allocations: 4 kB / 1.916 GB, free: 294.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005837/2.715, allocations: 71.89 kB / 1.916 GB, free: 294.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/2.716, allocations: 43.94 kB / 1.916 GB, free: 294 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.361e-05/2.716, allocations: 23.98 kB / 1.916 GB, free: 294 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0004466/2.716, allocations: 463.1 kB / 1.916 GB, free: 293.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.61e-07/2.716, allocations: 0 / 1.916 GB, free: 293.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001463/2.718, allocations: 494.8 kB / 1.917 GB, free: 293.1 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.002408/2.72, allocations: 2.31 MB / 1.919 GB, free: 290.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00152/2.722, allocations: 0.9283 MB / 1.92 GB, free: 289.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/2.722, allocations: 0 / 1.92 GB, free: 289.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004025/2.722, allocations: 327.1 kB / 1.92 GB, free: 289.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001581/2.724, allocations: 309.1 kB / 1.92 GB, free: 289.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002259/2.726, allocations: 1.256 MB / 1.922 GB, free: 287.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/2.726, allocations: 1.018 MB / 1.923 GB, free: 286.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.000708/2.727, allocations: 195.9 kB / 1.923 GB, free: 286.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/2.727, allocations: 323.3 kB / 1.923 GB, free: 286.3 MB / 1.151 GB Notification: Performance of SimCode: time 4.41e-07/2.727, allocations: 0 / 1.923 GB, free: 286.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04271/2.77, allocations: 22.69 MB / 1.945 GB, free: 263.8 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/2.77, allocations: 180.6 kB / 1.945 GB, free: 263.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.794/5.564, allocations: 6.812 kB / 1.945 GB, free: 263.6 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat does not exist to compare? outputFormat=mat