Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_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.407/2.407, allocations: 390.5 MB / 398 MB, free: 10.92 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.001496/0.001496, allocations: 175.8 kB / 491.2 MB, free: 1.559 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.773/1.773, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001044/0.001044, allocations: 87.95 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.48e-05/2.482e-05, allocations: 8 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3102, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9833/1.294, allocations: 149.6 MB / 1.359 GB, free: 17.31 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001811/1.294, allocations: 69.8 kB / 1.359 GB, free: 17.31 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006687/1.301, allocations: 2.214 MB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.774e-06/1.301, allocations: 3.938 kB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.038e-05/1.301, allocations: 0 / 1.361 GB, free: 32.91 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006142/1.301, allocations: 431.4 kB / 1.361 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.131e-05/1.301, allocations: 11.62 kB / 1.361 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.581e-05/1.301, allocations: 11.56 kB / 1.361 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/1.302, allocations: 172.4 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/1.302, allocations: 0 / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.334e-05/1.302, allocations: 7.688 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001109/1.302, allocations: 22.5 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/1.302, allocations: 50.53 kB / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/1.302, allocations: 0 / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/1.302, allocations: 3.984 kB / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/1.302, allocations: 0 / 1.361 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005794/1.303, allocations: 307.7 kB / 1.362 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.216e-05/1.303, allocations: 34.14 kB / 1.362 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.247e-05/1.303, allocations: 16.17 kB / 1.362 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/1.303, allocations: 1.312 kB / 1.362 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000164/1.303, allocations: 74.02 kB / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/1.303, allocations: 3.938 kB / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002435/1.303, allocations: 70.59 kB / 1.362 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/1.303, allocations: 54.94 kB / 1.362 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/1.303, allocations: 121 kB / 1.362 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/1.303, allocations: 29.42 kB / 1.362 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.87e-05/1.304, allocations: 92.09 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.77e-05/1.304, allocations: 14.38 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.588e-05/1.304, allocations: 3.781 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001726/1.304, allocations: 317.9 kB / 1.363 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.158e-05/1.304, allocations: 30.94 kB / 1.363 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.436e-05/1.304, allocations: 55.36 kB / 1.363 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002094/1.304, allocations: 44.02 kB / 1.363 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/1.304, allocations: 7.875 kB / 1.363 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003623/1.305, allocations: 127.7 kB / 1.363 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.681e-05/1.305, allocations: 38.14 kB / 1.363 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/1.305, allocations: 0 / 1.363 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/1.305, allocations: 3.812 kB / 1.363 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/1.305, allocations: 29.23 kB / 1.363 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.77e-05/1.305, allocations: 7.016 kB / 1.363 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000258/1.305, allocations: 57.62 kB / 1.363 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/1.305, allocations: 10.92 kB / 1.363 GB, free: 31.17 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001153/1.305, allocations: 104.9 kB / 1.363 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001146/1.305, allocations: 71 kB / 1.363 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.658e-05/1.305, allocations: 11 kB / 1.363 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.199e-05/1.305, allocations: 12.5 kB / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/1.305, allocations: 0 / 1.363 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/1.306, allocations: 3.953 kB / 1.363 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/1.306, allocations: 11.78 kB / 1.363 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/1.306, allocations: 154.7 kB / 1.363 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/1.306, allocations: 7.203 kB / 1.363 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/1.306, allocations: 18.27 kB / 1.363 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/1.306, allocations: 3.094 kB / 1.363 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/1.306, allocations: 192 / 1.363 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/1.306, allocations: 4 kB / 1.363 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/1.306, allocations: 0 / 1.363 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001386/1.306, allocations: 106.5 kB / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/1.306, allocations: 77.11 kB / 1.364 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/1.306, allocations: 3.844 kB / 1.364 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.602e-05/1.306, allocations: 17.25 kB / 1.364 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.043e-05/1.306, allocations: 7.312 kB / 1.364 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/1.306, allocations: 3.969 kB / 1.364 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.264e-05/1.306, allocations: 95.41 kB / 1.364 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.306, allocations: 0 / 1.364 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002432/1.307, allocations: 27.41 kB / 1.364 GB, free: 30.59 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006071/1.307, allocations: 0.6462 MB / 1.364 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002928/1.308, allocations: 144.3 kB / 1.364 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/1.308, allocations: 0 / 1.364 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.46e-05/1.308, allocations: 22.72 kB / 1.364 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/1.308, allocations: 15.11 kB / 1.364 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004563/1.308, allocations: 129.9 kB / 1.365 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/1.309, allocations: 0.6906 MB / 1.365 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.496e-05/1.309, allocations: 7.391 kB / 1.365 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.982e-05/1.309, allocations: 18.28 kB / 1.365 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/1.309, allocations: 3.938 kB / 1.365 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/1.332, allocations: 1.88 MB / 1.367 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/1.332, allocations: 146.5 kB / 1.367 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.549/2.881, allocations: 0 / 1.367 GB, free: 28.79 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat does not exist to compare? outputFormat=mat