Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.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.Toggle,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",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.575/2.575, 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.001386/0.001386, allocations: 172.3 kB / 491.2 MB, free: 1.633 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.288/2.288, allocations: 221.5 MB / 0.7868 GB, free: 13.35 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.001407/0.001407, allocations: 95.77 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.834e-05/2.824e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3772/0.3773, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9556/1.333, allocations: 149.9 MB / 1.359 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/1.333, allocations: 70.66 kB / 1.359 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0108/1.344, allocations: 3.961 MB / 1.363 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.343e-06/1.344, allocations: 0 / 1.363 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.106e-05/1.344, allocations: 3.844 kB / 1.363 GB, free: 32.82 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000576/1.345, allocations: 490 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/1.345, allocations: 11.56 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.985e-05/1.345, allocations: 22.56 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.141e-05/1.345, allocations: 174.5 kB / 1.363 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/1.345, allocations: 15.48 kB / 1.363 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.338e-05/1.345, allocations: 26.72 kB / 1.363 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001468/1.345, allocations: 77.66 kB / 1.364 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002585/1.345, allocations: 201.9 kB / 1.364 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/1.345, allocations: 0 / 1.364 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.96e-05/1.345, allocations: 21.53 kB / 1.364 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/1.345, allocations: 3.344 kB / 1.364 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005919/1.346, allocations: 0.4984 MB / 1.364 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/1.346, allocations: 262.5 kB / 1.364 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/1.346, allocations: 123.4 kB / 1.365 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/1.346, allocations: 0 / 1.365 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005417/1.347, allocations: 0.5564 MB / 1.365 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.473e-06/1.347, allocations: 0 / 1.365 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005349/1.348, allocations: 428.8 kB / 1.366 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.096e-05/1.348, allocations: 57.45 kB / 1.366 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.587e-05/1.348, allocations: 124.1 kB / 1.366 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.996e-05/1.348, allocations: 50.7 kB / 1.366 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.09e-05/1.348, allocations: 103.7 kB / 1.366 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.14e-05/1.348, allocations: 102 kB / 1.366 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/1.348, allocations: 3.812 kB / 1.366 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000118/1.348, allocations: 338.1 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/1.348, allocations: 163 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00025/1.349, allocations: 271.7 kB / 1.367 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/1.349, allocations: 133.7 kB / 1.367 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/1.349, allocations: 7.797 kB / 1.367 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.000721/1.35, allocations: 466.8 kB / 1.367 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.899e-05/1.35, allocations: 72 kB / 1.367 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/1.35, allocations: 3.812 kB / 1.367 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/1.35, allocations: 3.844 kB / 1.367 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.589e-05/1.35, allocations: 25.25 kB / 1.367 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/1.35, allocations: 3.875 kB / 1.367 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003462/1.35, allocations: 77.94 kB / 1.367 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/1.35, allocations: 25.2 kB / 1.368 GB, free: 30.81 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCleTruIni.clr,$PRE.falCleFalIni.clr,$PRE.truCleTruIni.clr,$PRE.truCleFalIni.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.falCleTruIni.u,falCleTruIni.u,falCleTruIni.clr,$PRE.falCleTruIni.y,falCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,falCleFalIni.clr,$PRE.falCleFalIni.y,falCleFalIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,truCleTruIni.clr,$PRE.truCleTruIni.y,truCleTruIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,truCleFalIni.clr,$PRE.truCleFalIni.y,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.togInp.y,togInp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 2 * 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.0001329/1.35, allocations: 149.9 kB / 1.368 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004369/1.351, allocations: 432.4 kB / 1.368 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.476e-05/1.351, allocations: 22.97 kB / 1.368 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.716e-05/1.351, allocations: 36.58 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/1.351, allocations: 3.812 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/1.351, allocations: 0 / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/1.351, allocations: 2.953 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009164/1.352, allocations: 0.8767 MB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/1.352, allocations: 0 / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.988e-05/1.352, allocations: 21.94 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/1.352, allocations: 3.906 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.212e-05/1.352, allocations: 16.14 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/1.352, allocations: 7.844 kB / 1.369 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/1.352, allocations: 0 / 1.369 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004906/1.352, allocations: 0.5799 MB / 1.37 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.494e-05/1.353, allocations: 99.16 kB / 1.37 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.085e-05/1.353, allocations: 21.31 kB / 1.37 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/1.353, allocations: 10.73 kB / 1.37 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/1.353, allocations: 101.4 kB / 1.37 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.766e-05/1.353, allocations: 32.56 kB / 1.37 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.575e-05/1.353, allocations: 102.4 kB / 1.37 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.1e-07/1.353, allocations: 0 / 1.37 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003604/1.353, allocations: 83.58 kB / 1.37 GB, free: 29.8 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 48 (swiCleInp1.clr,swiCleInp.clr,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,falCleTruIni.u,falCleTruIni.y,falCleFalIni.u,falCleFalIni.y,truCleTruIni.u,truCleTruIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y,cleInp.y,togInp.y,falCleFalIni.clr,falCleTruIni.clr,truCleFalIni.clr,truCleTruIni.clr) * Number of discrete states: 12 (truCleFalIni.u,truCleFalIni.y,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y,falCleFalIni.u,falCleFalIni.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0009284/1.354, allocations: 1.451 MB / 1.371 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000531/1.355, allocations: 0.5315 MB / 1.372 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.355, allocations: 0 / 1.372 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002052/1.355, allocations: 243.3 kB / 1.372 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/1.355, allocations: 21.69 kB / 1.372 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006944/1.356, allocations: 391.2 kB / 1.373 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/1.356, allocations: 0.7358 MB / 1.373 GB, free: 27.69 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001065/1.356, allocations: 42.86 kB / 1.373 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/1.357, allocations: 86.31 kB / 1.373 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.357, allocations: 0 / 1.373 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0236/1.38, allocations: 5.903 MB / 1.379 GB, free: 27.29 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/1.38, allocations: 139.6 kB / 1.379 GB, free: 27.1 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/3.039, allocations: 3.875 kB / 1.379 GB, free: 27.1 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat does not exist to compare? outputFormat=mat