Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.25/2.25, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001024/0.001024, allocations: 180.9 kB / 487.4 MB, free: 5.039 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.511/1.511, allocations: 221.5 MB / 0.7824 GB, free: 1.035 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 106.6 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 3.065e-05/3.075e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2805, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9448/1.225, allocations: 149.1 MB / 1.352 GB, free: 18.1 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/1.226, allocations: 75.83 kB / 1.352 GB, free: 18.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01265/1.238, allocations: 3.957 MB / 1.356 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.265e-06/1.238, allocations: 0 / 1.356 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.241e-05/1.238, allocations: 3.844 kB / 1.356 GB, free: 33.63 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.0006849/1.239, allocations: 487.7 kB / 1.356 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/1.239, allocations: 11.53 kB / 1.356 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.913e-05/1.239, allocations: 24.66 kB / 1.356 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/1.239, allocations: 180.2 kB / 1.356 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/1.239, allocations: 10.77 kB / 1.356 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.77e-05/1.239, allocations: 34.59 kB / 1.356 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001709/1.24, allocations: 77.73 kB / 1.356 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002946/1.24, allocations: 196.7 kB / 1.357 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/1.24, allocations: 0 / 1.357 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/1.24, allocations: 13.36 kB / 1.357 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/1.24, allocations: 7.797 kB / 1.357 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007016/1.241, allocations: 0.5001 MB / 1.357 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/1.241, allocations: 254.5 kB / 1.357 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/1.241, allocations: 130.6 kB / 1.357 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/1.241, allocations: 3.812 kB / 1.357 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006319/1.242, allocations: 0.5574 MB / 1.358 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.563e-06/1.242, allocations: 0 / 1.358 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005985/1.242, allocations: 424.3 kB / 1.358 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/1.243, allocations: 62.42 kB / 1.358 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.778e-05/1.243, allocations: 119.6 kB / 1.359 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.833e-05/1.243, allocations: 46.8 kB / 1.359 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.862e-05/1.243, allocations: 103.3 kB / 1.359 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.294e-05/1.243, allocations: 109.3 kB / 1.359 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.321e-05/1.243, allocations: 0 / 1.359 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001458/1.243, allocations: 343.3 kB / 1.359 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/1.243, allocations: 163.7 kB / 1.359 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/1.244, allocations: 255.9 kB / 1.36 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/1.244, allocations: 137.2 kB / 1.36 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/1.244, allocations: 0 / 1.36 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007667/1.245, allocations: 476.3 kB / 1.36 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/1.245, allocations: 73.55 kB / 1.36 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/1.245, allocations: 4 kB / 1.36 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/1.245, allocations: 7.688 kB / 1.36 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.843e-05/1.245, allocations: 22.41 kB / 1.36 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.904e-06/1.245, allocations: 15.72 kB / 1.36 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003526/1.245, allocations: 70.45 kB / 1.36 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/1.245, allocations: 34 kB / 1.36 GB, free: 31.61 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.0001499/1.245, allocations: 147.9 kB / 1.361 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00047/1.246, allocations: 429.3 kB / 1.361 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.722e-05/1.246, allocations: 26.12 kB / 1.361 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.531e-05/1.246, allocations: 32.56 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/1.246, allocations: 3.844 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.246, allocations: 7.844 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/1.246, allocations: 1.781 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/1.247, allocations: 0.8693 MB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/1.247, allocations: 0 / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.967e-05/1.247, allocations: 17.06 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/1.247, allocations: 3.844 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/1.247, allocations: 21.08 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/1.247, allocations: 0 / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.247, allocations: 3.875 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005482/1.248, allocations: 0.5841 MB / 1.362 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.965e-05/1.248, allocations: 92.67 kB / 1.363 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.287e-05/1.248, allocations: 27.23 kB / 1.363 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.637e-05/1.248, allocations: 5.578 kB / 1.363 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/1.248, allocations: 100.5 kB / 1.363 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.602e-05/1.248, allocations: 38.64 kB / 1.363 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.788e-05/1.248, allocations: 92.73 kB / 1.363 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.21e-07/1.248, allocations: 0 / 1.363 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003752/1.249, allocations: 84.97 kB / 1.363 GB, free: 30.62 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.001093/1.25, allocations: 1.444 MB / 1.364 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005993/1.25, allocations: 0.5261 MB / 1.365 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/1.25, allocations: 0 / 1.365 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002289/1.251, allocations: 250.7 kB / 1.365 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/1.251, allocations: 23.48 kB / 1.365 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007745/1.252, allocations: 396.2 kB / 1.365 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/1.252, allocations: 0.7418 MB / 1.366 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001089/1.252, allocations: 39.53 kB / 1.366 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/1.252, allocations: 85.27 kB / 1.366 GB, free: 28.49 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.252, allocations: 0 / 1.366 GB, free: 28.49 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02554/1.278, allocations: 5.901 MB / 1.372 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/1.278, allocations: 139.4 kB / 1.372 GB, free: 27.92 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/3.112, allocations: 0 / 1.372 GB, free: 27.92 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat does not exist to compare? outputFormat=mat