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.351/2.351, allocations: 390.5 MB / 398 MB, free: 10.98 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.001404/0.001404, allocations: 179.5 kB / 491.2 MB, free: 1.609 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.52/1.52, allocations: 221.5 MB / 0.7868 GB, free: 13.28 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.001005/0.001005, allocations: 90.25 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.936e-05/1.939e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.318, allocations: 143 MB / 1.212 GB, free: 39.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.158/1.476, allocations: 149.8 MB / 1.359 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/1.476, allocations: 76.78 kB / 1.359 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01332/1.49, allocations: 4.485 MB / 1.363 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.625e-06/1.49, allocations: 0 / 1.363 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.251e-05/1.49, allocations: 3.344 kB / 1.363 GB, free: 32.73 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.0008454/1.491, allocations: 489.8 kB / 1.364 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/1.491, allocations: 6.656 kB / 1.364 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/1.491, allocations: 20.3 kB / 1.364 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/1.491, allocations: 185.2 kB / 1.364 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.867e-05/1.491, allocations: 4.812 kB / 1.364 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.783e-05/1.491, allocations: 17.44 kB / 1.364 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000134/1.491, allocations: 43.8 kB / 1.364 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001501/1.492, allocations: 76.59 kB / 1.364 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/1.492, allocations: 0 / 1.364 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/1.492, allocations: 1.219 kB / 1.364 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/1.492, allocations: 7.438 kB / 1.364 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000821/1.493, allocations: 455.3 kB / 1.364 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/1.493, allocations: 69.78 kB / 1.364 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.667e-05/1.493, allocations: 30.8 kB / 1.365 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/1.493, allocations: 0 / 1.365 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00021/1.493, allocations: 109.7 kB / 1.365 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.924e-06/1.493, allocations: 0 / 1.365 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003319/1.493, allocations: 122 kB / 1.365 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/1.493, allocations: 59.09 kB / 1.365 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/1.494, allocations: 139.8 kB / 1.365 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/1.494, allocations: 37.36 kB / 1.365 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/1.494, allocations: 113.8 kB / 1.365 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/1.494, allocations: 24.88 kB / 1.365 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/1.494, allocations: 7.781 kB / 1.365 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000147/1.494, allocations: 330 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/1.494, allocations: 79.86 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/1.494, allocations: 131 kB / 1.366 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000442/1.495, allocations: 106.7 kB / 1.366 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/1.495, allocations: 0 / 1.366 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000683/1.496, allocations: 306.2 kB / 1.366 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.268e-05/1.496, allocations: 101 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/1.496, allocations: 4.781 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/1.496, allocations: 0 / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.044e-05/1.496, allocations: 18.47 kB / 1.366 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/1.496, allocations: 4 kB / 1.366 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004567/1.496, allocations: 104.3 kB / 1.366 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.352e-05/1.496, allocations: 19.25 kB / 1.366 GB, free: 30.78 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.0001249/1.496, allocations: 125.1 kB / 1.366 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001624/1.497, allocations: 127 kB / 1.366 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/1.497, allocations: 11.88 kB / 1.366 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.293e-05/1.497, allocations: 17.88 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/1.497, allocations: 0 / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/1.497, allocations: 0 / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/1.497, allocations: 3.844 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/1.497, allocations: 186.4 kB / 1.367 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/1.497, allocations: 0 / 1.367 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.743e-05/1.497, allocations: 13.17 kB / 1.367 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/1.497, allocations: 0 / 1.367 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/1.497, allocations: 12.67 kB / 1.367 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/1.497, allocations: 3.938 kB / 1.367 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/1.497, allocations: 0 / 1.367 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001889/1.497, allocations: 150.8 kB / 1.367 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/1.497, allocations: 86.44 kB / 1.367 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/1.497, allocations: 0 / 1.367 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.084e-05/1.497, allocations: 1.406 kB / 1.367 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.808e-05/1.497, allocations: 11.72 kB / 1.367 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/1.497, allocations: 7.969 kB / 1.367 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.034e-05/1.497, allocations: 104.4 kB / 1.367 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.21e-07/1.497, allocations: 0 / 1.367 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002928/1.498, allocations: 55.39 kB / 1.367 GB, free: 30.18 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.0005303/1.498, allocations: 0.7051 MB / 1.368 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003772/1.499, allocations: 367.1 kB / 1.368 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/1.499, allocations: 3.812 kB / 1.368 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.589e-05/1.499, allocations: 46.36 kB / 1.368 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002337/1.499, allocations: 23.7 kB / 1.368 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005102/1.499, allocations: 197.9 kB / 1.368 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/1.5, allocations: 0.7129 MB / 1.369 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.892e-05/1.5, allocations: 11.72 kB / 1.369 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.611e-05/1.5, allocations: 37.89 kB / 1.369 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of SimCode: time 3.41e-07/1.5, allocations: 0 / 1.369 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/1.526, allocations: 3.306 MB / 1.372 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002058/1.526, allocations: 152 kB / 1.373 GB, free: 28.07 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.543/3.069, allocations: 0 / 1.373 GB, free: 28.07 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