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.474/2.474, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001201/0.001202, allocations: 183.3 kB / 498.1 MB, free: 5.727 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.742/1.742, allocations: 223.2 MB / 0.7948 GB, free: 17.93 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.001009/0.001009, allocations: 112.2 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003852, allocations: 13.22 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3281, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.017/1.345, allocations: 400.9 MB / 1.614 GB, free: 10.8 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/1.345, allocations: 95.75 kB / 1.614 GB, free: 10.75 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.197/2.543, allocations: 308.2 MB / 1.916 GB, free: 356.9 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.743e-06/2.543, allocations: 0 / 1.916 GB, free: 356.9 MB / 1.167 GB Notification: Performance of Transformations before backend: time 8.443e-05/2.543, allocations: 33.16 kB / 1.916 GB, free: 356.9 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.002406/2.545, allocations: 1.418 MB / 1.917 GB, free: 356.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/2.545, allocations: 10.91 kB / 1.917 GB, free: 356.1 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/2.545, allocations: 100.6 kB / 1.917 GB, free: 356.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/2.545, allocations: 121.5 kB / 1.917 GB, free: 356 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/2.547, allocations: 0.6797 MB / 1.918 GB, free: 355.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.494e-05/2.547, allocations: 56 kB / 1.918 GB, free: 355.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.552e-05/2.547, allocations: 61.66 kB / 1.918 GB, free: 355.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009453/2.548, allocations: 0.6842 MB / 1.919 GB, free: 355.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/2.548, allocations: 3.938 kB / 1.919 GB, free: 355.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.258e-05/2.548, allocations: 27.34 kB / 1.919 GB, free: 355.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/2.548, allocations: 18.86 kB / 1.919 GB, free: 355.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007161/2.549, allocations: 478 kB / 1.919 GB, free: 355.6 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.003066/2.552, allocations: 2.605 MB / 1.922 GB, free: 354.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006894/2.552, allocations: 412.2 kB / 1.922 GB, free: 354.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002394/2.553, allocations: 348.2 kB / 1.922 GB, free: 353.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004635/2.553, allocations: 356.9 kB / 1.923 GB, free: 353.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=37): time 2.264e-06/2.553, allocations: 2.938 kB / 1.923 GB, free: 353.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=37): time 0.001417/2.555, allocations: 0.8777 MB / 1.924 GB, free: 353.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.901e-05/2.555, allocations: 239 kB / 1.924 GB, free: 353.3 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007517/2.555, allocations: 0.7383 MB / 1.925 GB, free: 353.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 5.589e-05/2.556, allocations: 40.61 kB / 1.925 GB, free: 353.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002471/2.556, allocations: 443.5 kB / 1.925 GB, free: 353 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 7.851e-05/2.556, allocations: 121 kB / 1.925 GB, free: 352.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/2.556, allocations: 11.53 kB / 1.925 GB, free: 352.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 5.991e-05/2.556, allocations: 335.4 kB / 1.925 GB, free: 352.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003795/2.556, allocations: 223.1 kB / 1.926 GB, free: 352.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000469/2.557, allocations: 427.6 kB / 1.926 GB, free: 352.4 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004175/2.557, allocations: 283.5 kB / 1.926 GB, free: 352.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/2.557, allocations: 0 / 1.926 GB, free: 352.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001164/2.558, allocations: 0.8006 MB / 1.927 GB, free: 352.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002992/2.559, allocations: 1.091 MB / 1.928 GB, free: 351.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/2.559, allocations: 0 / 1.928 GB, free: 351.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/2.559, allocations: 6.281 kB / 1.928 GB, free: 351.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009003/2.56, allocations: 160.1 kB / 1.928 GB, free: 351.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006925/2.56, allocations: 1.78 MB / 1.93 GB, free: 349.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008317/2.561, allocations: 134.6 kB / 1.93 GB, free: 349.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.189e-05/2.561, allocations: 32.94 kB / 1.93 GB, free: 349.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/2.561, allocations: 5.969 kB / 1.93 GB, free: 349.3 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001092/2.562, allocations: 0.7178 MB / 1.931 GB, free: 349.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/2.562, allocations: 0 / 1.931 GB, free: 349.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.973e-06/2.562, allocations: 7.344 kB / 1.931 GB, free: 349.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005138/2.563, allocations: 131.3 kB / 1.931 GB, free: 349.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/2.563, allocations: 10.2 kB / 1.931 GB, free: 349.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006886/2.564, allocations: 119 kB / 1.931 GB, free: 349.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.917e-05/2.564, allocations: 36.39 kB / 1.931 GB, free: 349.2 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.0004291/2.564, allocations: 345.7 kB / 1.932 GB, free: 349 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/2.564, allocations: 97.73 kB / 1.932 GB, free: 349 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/2.566, allocations: 0.75 MB / 1.932 GB, free: 348.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.998e-06/2.566, allocations: 7.875 kB / 1.932 GB, free: 348.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/2.566, allocations: 0 / 1.932 GB, free: 348.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/2.566, allocations: 3.891 kB / 1.932 GB, free: 348.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/2.568, allocations: 1.63 MB / 1.934 GB, free: 348.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/2.568, allocations: 3.719 kB / 1.934 GB, free: 348.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004146/2.568, allocations: 104.2 kB / 1.934 GB, free: 348.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/2.568, allocations: 0 / 1.934 GB, free: 348.3 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/2.568, allocations: 17 kB / 1.934 GB, free: 348.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004745/2.569, allocations: 1.766 MB / 1.936 GB, free: 346.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/2.569, allocations: 4.688 kB / 1.936 GB, free: 346.6 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/2.57, allocations: 1.277 MB / 1.937 GB, free: 346.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003436/2.571, allocations: 235.8 kB / 1.937 GB, free: 346 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/2.571, allocations: 21.91 kB / 1.937 GB, free: 346 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006438/2.571, allocations: 71.33 kB / 1.937 GB, free: 346 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/2.571, allocations: 49.75 kB / 1.937 GB, free: 346 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.451e-05/2.571, allocations: 24 kB / 1.937 GB, free: 346 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0005967/2.572, allocations: 0.5697 MB / 1.938 GB, free: 345.9 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.3e-07/2.572, allocations: 0 / 1.938 GB, free: 345.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001508/2.574, allocations: 0.4929 MB / 1.938 GB, free: 345.8 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.002385/2.576, allocations: 2.382 MB / 1.941 GB, free: 344.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001846/2.578, allocations: 1.026 MB / 1.942 GB, free: 344.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/2.578, allocations: 3.938 kB / 1.942 GB, free: 344.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005374/2.578, allocations: 359.3 kB / 1.942 GB, free: 344.3 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/2.58, allocations: 367.9 kB / 1.943 GB, free: 344.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/2.583, allocations: 3.911 MB / 1.946 GB, free: 341.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/2.584, allocations: 1.021 MB / 1.947 GB, free: 340.7 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0006012/2.584, allocations: 155.9 kB / 1.947 GB, free: 340.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003347/2.585, allocations: 344.1 kB / 1.948 GB, free: 340.7 MB / 1.167 GB Notification: Performance of SimCode: time 3.11e-07/2.585, allocations: 0 / 1.948 GB, free: 340.7 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04126/2.626, allocations: 25.29 MB / 1.972 GB, free: 339.9 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/2.626, allocations: 263.2 kB / 1.973 GB, free: 339.5 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.851/5.477, allocations: 0 / 1.973 GB, free: 339.5 MB / 1.167 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