Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.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.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",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.519/2.519, allocations: 390.3 MB / 402.8 MB, free: 6.676 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.001139/0.001139, allocations: 176.9 kB / 496.1 MB, free: 12.87 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.719/1.719, allocations: 221.3 MB / 0.7915 GB, free: 5.426 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.0008983/0.0008984, allocations: 107.7 kB / 0.9318 GB, free: 5.734 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.883e-05/3.897e-05, allocations: 7.984 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2861, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.015/1.301, allocations: 150.5 MB / 1.366 GB, free: 3.555 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/1.301, allocations: 73.58 kB / 1.366 GB, free: 3.516 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01395/1.315, allocations: 4.507 MB / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.064e-06/1.316, allocations: 0 / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.316e-05/1.316, allocations: 0 / 1.37 GB, free: 15.6 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007727/1.316, allocations: 487.2 kB / 1.371 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.46e-05/1.316, allocations: 12.03 kB / 1.371 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.42e-05/1.316, allocations: 42.17 kB / 1.371 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/1.317, allocations: 19.86 kB / 1.371 GB, free: 15 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/1.317, allocations: 180 kB / 1.371 GB, free: 14.78 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-05/1.317, allocations: 15.94 kB / 1.371 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-05/1.317, allocations: 23.36 kB / 1.371 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002271/1.317, allocations: 88.45 kB / 1.371 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/1.317, allocations: 0 / 1.371 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/1.317, allocations: 7.75 kB / 1.371 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/1.317, allocations: 0 / 1.371 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/1.317, allocations: 44.3 kB / 1.371 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008648/1.318, allocations: 498.1 kB / 1.372 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/1.319, allocations: 72.62 kB / 1.372 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.17e-05/1.319, allocations: 24.45 kB / 1.372 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/1.319, allocations: 7.938 kB / 1.372 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/1.319, allocations: 126.2 kB / 1.372 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 2.144e-06/1.319, allocations: 0 / 1.372 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003209/1.319, allocations: 133.6 kB / 1.372 GB, free: 13.85 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/1.319, allocations: 55.41 kB / 1.372 GB, free: 13.78 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/1.319, allocations: 156.3 kB / 1.372 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.983e-05/1.319, allocations: 37.08 kB / 1.372 GB, free: 13.6 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/1.32, allocations: 110.5 kB / 1.372 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.434e-05/1.32, allocations: 27.19 kB / 1.372 GB, free: 13.48 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.498e-05/1.32, allocations: 11.25 kB / 1.372 GB, free: 13.47 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001518/1.32, allocations: 325.8 kB / 1.373 GB, free: 13.15 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/1.32, allocations: 90.61 kB / 1.373 GB, free: 13.09 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/1.32, allocations: 140.9 kB / 1.373 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/1.32, allocations: 173.7 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/1.32, allocations: 0 / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006644/1.321, allocations: 394.8 kB / 1.373 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.766e-05/1.321, allocations: 107.6 kB / 1.374 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/1.321, allocations: 0 / 1.374 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/1.321, allocations: 7.953 kB / 1.374 GB, free: 12.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.951e-05/1.321, allocations: 8 kB / 1.374 GB, free: 12.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/1.321, allocations: 4 kB / 1.374 GB, free: 12.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/1.322, allocations: 111 kB / 1.374 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.058e-05/1.322, allocations: 26.91 kB / 1.374 GB, free: 12.19 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001234/1.322, allocations: 121 kB / 1.374 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.761e-05/1.322, allocations: 11.81 kB / 1.374 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.727e-05/1.322, allocations: 12.62 kB / 1.374 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/1.322, allocations: 0 / 1.374 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/1.322, allocations: 7.953 kB / 1.374 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/1.322, allocations: 3.984 kB / 1.374 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/1.322, allocations: 214.7 kB / 1.374 GB, free: 11.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/1.322, allocations: 4 kB / 1.374 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.844e-05/1.322, allocations: 15.12 kB / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/1.323, allocations: 4 kB / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/1.323, allocations: 3.984 kB / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/1.323, allocations: 0 / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/1.323, allocations: 0 / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002364/1.323, allocations: 165.6 kB / 1.374 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.907e-05/1.323, allocations: 85.02 kB / 1.374 GB, free: 11.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/1.323, allocations: 7.75 kB / 1.374 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.024e-05/1.323, allocations: 0 / 1.374 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.529e-05/1.323, allocations: 11.8 kB / 1.374 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/1.323, allocations: 11.98 kB / 1.374 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.348e-05/1.323, allocations: 118.3 kB / 1.374 GB, free: 11.4 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.01e-07/1.323, allocations: 3.938 kB / 1.374 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002941/1.323, allocations: 55.12 kB / 1.375 GB, free: 11.34 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006572/1.324, allocations: 0.7102 MB / 1.375 GB, free: 10.63 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005038/1.325, allocations: 382.1 kB / 1.376 GB, free: 10.3 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.325, allocations: 0 / 1.376 GB, free: 10.3 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.3e-05/1.325, allocations: 45.88 kB / 1.376 GB, free: 10.26 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/1.325, allocations: 34.91 kB / 1.376 GB, free: 10.23 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005702/1.326, allocations: 204.9 kB / 1.376 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/1.326, allocations: 0.7126 MB / 1.377 GB, free: 9.285 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.769e-05/1.326, allocations: 12.77 kB / 1.377 GB, free: 9.273 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.537e-05/1.326, allocations: 42.11 kB / 1.377 GB, free: 9.25 MB / 0.8386 GB Notification: Performance of SimCode: time 7.51e-07/1.326, allocations: 0 / 1.377 GB, free: 9.25 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/1.344, allocations: 3.86 MB / 1.38 GB, free: 5.547 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002698/1.344, allocations: 169.8 kB / 1.381 GB, free: 5.316 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.621/2.965, allocations: 0 / 1.381 GB, free: 5.316 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat does not exist to compare? outputFormat=mat