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.307/2.307, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.001055/0.001055, allocations: 180.1 kB / 492.3 MB, free: 0.6172 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.582/1.582, allocations: 221.3 MB / 0.7871 GB, free: 12.93 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.0009006/0.0009006, allocations: 93.61 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.075e-05/4.125e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2811, allocations: 142.4 MB / 1.213 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.075/1.356, allocations: 149.8 MB / 1.359 GB, free: 19.13 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/1.356, allocations: 70.67 kB / 1.359 GB, free: 19.13 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01306/1.37, allocations: 3.982 MB / 1.363 GB, free: 34.64 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.814e-06/1.37, allocations: 0 / 1.363 GB, free: 34.64 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.609e-05/1.37, allocations: 3.062 kB / 1.363 GB, free: 34.64 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.0009236/1.371, allocations: 493.9 kB / 1.363 GB, free: 34.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 7.26e-05/1.371, allocations: 7.844 kB / 1.363 GB, free: 34.21 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001254/1.371, allocations: 47.64 kB / 1.363 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/1.371, allocations: 26.27 kB / 1.363 GB, free: 34.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/1.371, allocations: 178.8 kB / 1.363 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.203e-05/1.371, allocations: 21.88 kB / 1.363 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/1.371, allocations: 40.39 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/1.372, allocations: 216.8 kB / 1.364 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/1.372, allocations: 0 / 1.364 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.902e-05/1.372, allocations: 14.8 kB / 1.364 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/1.372, allocations: 11.83 kB / 1.364 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/1.372, allocations: 86.61 kB / 1.364 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/1.373, allocations: 0.5318 MB / 1.364 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004063/1.373, allocations: 295.2 kB / 1.365 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/1.374, allocations: 136.9 kB / 1.365 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/1.374, allocations: 3.875 kB / 1.365 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007676/1.374, allocations: 0.5634 MB / 1.365 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 2.214e-06/1.374, allocations: 0 / 1.365 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0007724/1.375, allocations: 467.9 kB / 1.366 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/1.375, allocations: 59.69 kB / 1.366 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/1.375, allocations: 127.3 kB / 1.366 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.828e-05/1.376, allocations: 63.48 kB / 1.366 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.557e-05/1.376, allocations: 101.5 kB / 1.366 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.000102/1.376, allocations: 110.3 kB / 1.366 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/1.376, allocations: 12.28 kB / 1.366 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001332/1.376, allocations: 344.7 kB / 1.367 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/1.376, allocations: 178.6 kB / 1.367 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003998/1.377, allocations: 279.4 kB / 1.367 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/1.377, allocations: 192.4 kB / 1.367 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/1.377, allocations: 0 / 1.367 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00087/1.378, allocations: 0.5546 MB / 1.368 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.695e-05/1.378, allocations: 69.06 kB / 1.368 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/1.378, allocations: 0 / 1.368 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/1.378, allocations: 7.656 kB / 1.368 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.289e-05/1.378, allocations: 28.78 kB / 1.368 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.039e-05/1.378, allocations: 7.797 kB / 1.368 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/1.379, allocations: 82.75 kB / 1.368 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.776e-05/1.379, allocations: 33.64 kB / 1.368 GB, free: 32.42 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.0001981/1.379, allocations: 175.8 kB / 1.368 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.519e-05/1.379, allocations: 27.12 kB / 1.368 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/1.379, allocations: 44.58 kB / 1.368 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/1.379, allocations: 3.844 kB / 1.368 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/1.379, allocations: 0 / 1.368 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.719e-06/1.379, allocations: 2.812 kB / 1.368 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/1.381, allocations: 0.9597 MB / 1.369 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/1.381, allocations: 0 / 1.369 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.486e-05/1.381, allocations: 17.55 kB / 1.369 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.877e-06/1.381, allocations: 8 kB / 1.369 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.103e-05/1.381, allocations: 23.45 kB / 1.369 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/1.381, allocations: 3.875 kB / 1.369 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/1.381, allocations: 0 / 1.369 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007451/1.382, allocations: 0.6176 MB / 1.37 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.697e-05/1.382, allocations: 99.03 kB / 1.37 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.377e-05/1.382, allocations: 30.34 kB / 1.37 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/1.382, allocations: 15.56 kB / 1.37 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/1.382, allocations: 97.81 kB / 1.37 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.849e-05/1.382, allocations: 42.52 kB / 1.37 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.837e-05/1.382, allocations: 97.19 kB / 1.37 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.382, allocations: 0 / 1.37 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004892/1.383, allocations: 102.9 kB / 1.37 GB, free: 31.44 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.001227/1.384, allocations: 1.477 MB / 1.372 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008246/1.385, allocations: 0.5709 MB / 1.372 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.385, allocations: 0 / 1.372 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002952/1.385, allocations: 260.5 kB / 1.372 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/1.385, allocations: 29.56 kB / 1.372 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009921/1.386, allocations: 445.8 kB / 1.373 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/1.387, allocations: 0.7448 MB / 1.374 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001325/1.387, allocations: 38.38 kB / 1.374 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/1.387, allocations: 84.47 kB / 1.374 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of SimCode: time 7.61e-07/1.387, allocations: 0 / 1.374 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/1.409, allocations: 6.389 MB / 1.38 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/1.41, allocations: 159.9 kB / 1.38 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.943/3.352, allocations: 0 / 1.38 GB, free: 28.57 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