Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_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.345/2.345, allocations: 390.3 MB / 402.8 MB, free: 6.68 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.001405/0.001406, allocations: 180.9 kB / 496.1 MB, free: 12.85 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.513/1.513, allocations: 221.3 MB / 0.7915 GB, free: 5.383 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.0009434/0.0009434, allocations: 99.75 kB / 0.9318 GB, free: 5.691 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.545e-05/2.548e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2613, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9019/1.163, allocations: 150.1 MB / 1.365 GB, free: 3.895 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/1.164, allocations: 73.34 kB / 1.366 GB, free: 3.855 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01255/1.176, allocations: 4.065 MB / 1.37 GB, free: 336 kB / 0.823 GB Notification: Performance of FrontEnd: time 1.212e-06/1.176, allocations: 0 / 1.37 GB, free: 336 kB / 0.823 GB Notification: Performance of Transformations before backend: time 9.047e-06/1.176, allocations: 4 kB / 1.37 GB, free: 332 kB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004926/1.177, allocations: 451.3 kB / 1.37 GB, free: 15.83 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/1.177, allocations: 8.031 kB / 1.37 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.651e-05/1.177, allocations: 30.56 kB / 1.37 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/1.177, allocations: 15.91 kB / 1.37 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/1.177, allocations: 176.8 kB / 1.37 GB, free: 15.56 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/1.177, allocations: 11.75 kB / 1.37 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.253e-05/1.177, allocations: 16 kB / 1.37 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/1.177, allocations: 60.28 kB / 1.37 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/1.177, allocations: 3.984 kB / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/1.177, allocations: 7.938 kB / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/1.177, allocations: 0 / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.73e-05/1.177, allocations: 15.5 kB / 1.37 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005661/1.178, allocations: 411.6 kB / 1.371 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.853e-05/1.178, allocations: 41.98 kB / 1.371 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.36e-05/1.178, allocations: 19.86 kB / 1.371 GB, free: 15 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.778e-06/1.178, allocations: 0 / 1.371 GB, free: 15 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/1.178, allocations: 97.08 kB / 1.371 GB, free: 14.9 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/1.178, allocations: 0 / 1.371 GB, free: 14.9 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002582/1.178, allocations: 123.5 kB / 1.371 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/1.178, allocations: 59.41 kB / 1.371 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/1.179, allocations: 124.3 kB / 1.371 GB, free: 14.6 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/1.179, allocations: 33.7 kB / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/1.179, allocations: 95.14 kB / 1.371 GB, free: 14.47 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/1.179, allocations: 23.45 kB / 1.371 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.467e-05/1.179, allocations: 11.62 kB / 1.371 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001279/1.179, allocations: 318.4 kB / 1.372 GB, free: 14.13 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/1.179, allocations: 86.86 kB / 1.372 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001992/1.179, allocations: 136 kB / 1.372 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/1.179, allocations: 169.2 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.18, allocations: 4 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005767/1.18, allocations: 370.5 kB / 1.372 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.926e-05/1.18, allocations: 96.78 kB / 1.372 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/1.18, allocations: 0 / 1.372 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/1.18, allocations: 7.953 kB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.333e-05/1.18, allocations: 0 / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/1.18, allocations: 7.984 kB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004985/1.181, allocations: 116 kB / 1.373 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/1.181, allocations: 15.98 kB / 1.373 GB, free: 13.21 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: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.0001077/1.181, allocations: 124.3 kB / 1.373 GB, free: 13.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.618e-05/1.181, allocations: 7.906 kB / 1.373 GB, free: 13.08 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/1.181, allocations: 11.88 kB / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/1.181, allocations: 7.953 kB / 1.373 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/1.181, allocations: 0 / 1.373 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/1.181, allocations: 3.984 kB / 1.373 GB, free: 13.06 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001552/1.181, allocations: 187.8 kB / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/1.181, allocations: 0 / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.118e-05/1.181, allocations: 0 / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/1.181, allocations: 0 / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/1.181, allocations: 7.984 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/1.181, allocations: 96 / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.181, allocations: 7.891 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/1.181, allocations: 135.3 kB / 1.373 GB, free: 12.69 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.933e-05/1.181, allocations: 85.02 kB / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/1.182, allocations: 3.984 kB / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.351e-05/1.182, allocations: 3.062 kB / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/1.182, allocations: 7.984 kB / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/1.182, allocations: 11.52 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.931e-05/1.182, allocations: 96.38 kB / 1.373 GB, free: 12.48 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.01e-07/1.182, allocations: 3.938 kB / 1.373 GB, free: 12.48 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002844/1.182, allocations: 59.25 kB / 1.373 GB, free: 12.42 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0005856/1.183, allocations: 0.671 MB / 1.374 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004509/1.183, allocations: 359.2 kB / 1.374 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/1.183, allocations: 4.062 kB / 1.374 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.058e-05/1.183, allocations: 40.75 kB / 1.374 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/1.183, allocations: 13.3 kB / 1.374 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004533/1.184, allocations: 173.8 kB / 1.374 GB, free: 11.19 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/1.184, allocations: 0.712 MB / 1.375 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.889e-05/1.184, allocations: 12.36 kB / 1.375 GB, free: 10.44 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.503e-05/1.184, allocations: 25.75 kB / 1.375 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of SimCode: time 6.81e-07/1.184, allocations: 0 / 1.375 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0145/1.199, allocations: 3.442 MB / 1.379 GB, free: 7.152 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002375/1.199, allocations: 157.2 kB / 1.379 GB, free: 6.926 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.521/2.72, allocations: 4 kB / 1.379 GB, free: 6.922 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat does not exist to compare? outputFormat=mat