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.291/2.291, allocations: 390.3 MB / 402.8 MB, free: 6.684 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.001192/0.001193, allocations: 180.9 kB / 496.1 MB, free: 12.86 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.634/1.634, allocations: 221.3 MB / 0.7915 GB, free: 5.348 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.001234/0.001234, allocations: 87.97 kB / 0.9317 GB, free: 5.668 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.564e-05/3.582e-05, allocations: 7.984 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2921, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9469/1.239, allocations: 150.6 MB / 1.366 GB, free: 3.422 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/1.239, allocations: 74.48 kB / 1.366 GB, free: 3.383 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01169/1.251, allocations: 3.981 MB / 1.37 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.403e-06/1.251, allocations: 0 / 1.37 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.596e-06/1.251, allocations: 0 / 1.37 GB, free: 15.9 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.0006372/1.252, allocations: 499.9 kB / 1.37 GB, free: 15.37 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/1.252, allocations: 12.03 kB / 1.37 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.538e-05/1.252, allocations: 45.23 kB / 1.37 GB, free: 15.31 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.63e-05/1.252, allocations: 27.89 kB / 1.37 GB, free: 15.29 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/1.252, allocations: 167 kB / 1.371 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/1.252, allocations: 27.67 kB / 1.371 GB, free: 15.06 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.877e-05/1.252, allocations: 38.42 kB / 1.371 GB, free: 15.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003478/1.253, allocations: 213.7 kB / 1.371 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/1.253, allocations: 0 / 1.371 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/1.253, allocations: 23.78 kB / 1.371 GB, free: 14.85 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/1.253, allocations: 0 / 1.371 GB, free: 14.85 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/1.253, allocations: 89.55 kB / 1.371 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000816/1.254, allocations: 0.5508 MB / 1.372 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004257/1.254, allocations: 276.3 kB / 1.372 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/1.254, allocations: 136.9 kB / 1.372 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.738e-06/1.254, allocations: 4 kB / 1.372 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000804/1.255, allocations: 0.5698 MB / 1.372 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.704e-06/1.255, allocations: 0 / 1.372 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.000782/1.256, allocations: 464.3 kB / 1.373 GB, free: 13.18 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/1.256, allocations: 63.22 kB / 1.373 GB, free: 13.1 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/1.256, allocations: 131.1 kB / 1.373 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.267e-05/1.256, allocations: 62.62 kB / 1.373 GB, free: 12.93 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.867e-05/1.256, allocations: 103.1 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/1.256, allocations: 110.9 kB / 1.373 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.419e-05/1.257, allocations: 11.69 kB / 1.373 GB, free: 12.74 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001833/1.257, allocations: 337.7 kB / 1.374 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003171/1.257, allocations: 185 kB / 1.374 GB, free: 12.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004043/1.257, allocations: 276.2 kB / 1.374 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/1.258, allocations: 197.7 kB / 1.374 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.258, allocations: 0 / 1.374 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008982/1.259, allocations: 0.556 MB / 1.375 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.39e-05/1.259, allocations: 70.83 kB / 1.375 GB, free: 11.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/1.259, allocations: 4 kB / 1.375 GB, free: 11.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/1.259, allocations: 4.312 kB / 1.375 GB, free: 11.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.055e-05/1.259, allocations: 31.61 kB / 1.375 GB, free: 11.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/1.259, allocations: 4 kB / 1.375 GB, free: 11.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004129/1.259, allocations: 79.44 kB / 1.375 GB, free: 11.26 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.779e-05/1.259, allocations: 31.23 kB / 1.375 GB, free: 11.24 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.0001788/1.26, allocations: 173.7 kB / 1.375 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.121e-05/1.26, allocations: 23.72 kB / 1.375 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/1.26, allocations: 44 kB / 1.375 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/1.26, allocations: 7.984 kB / 1.375 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/1.26, allocations: 0 / 1.375 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/1.26, allocations: 0 / 1.375 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001493/1.261, allocations: 0.9561 MB / 1.376 GB, free: 10.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/1.261, allocations: 0 / 1.376 GB, free: 10.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.204e-05/1.261, allocations: 19.67 kB / 1.376 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.745e-06/1.261, allocations: 4 kB / 1.376 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.086e-05/1.261, allocations: 26.09 kB / 1.376 GB, free: 10.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/1.261, allocations: 0 / 1.376 GB, free: 10.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.261, allocations: 7.953 kB / 1.376 GB, free: 10.15 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007668/1.262, allocations: 0.6204 MB / 1.377 GB, free: 9.59 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-05/1.262, allocations: 88.92 kB / 1.377 GB, free: 9.484 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.815e-05/1.262, allocations: 29.55 kB / 1.377 GB, free: 9.469 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/1.263, allocations: 15.42 kB / 1.377 GB, free: 9.461 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/1.263, allocations: 97.61 kB / 1.377 GB, free: 9.379 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.045e-05/1.263, allocations: 35.28 kB / 1.377 GB, free: 9.352 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.7e-05/1.263, allocations: 102.1 kB / 1.377 GB, free: 9.262 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.263, allocations: 0 / 1.377 GB, free: 9.262 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004394/1.263, allocations: 107.4 kB / 1.377 GB, free: 9.172 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.001341/1.265, allocations: 1.486 MB / 1.379 GB, free: 7.77 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008537/1.265, allocations: 0.5637 MB / 1.379 GB, free: 7.324 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/1.265, allocations: 11.94 kB / 1.379 GB, free: 7.312 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003052/1.266, allocations: 262.5 kB / 1.38 GB, free: 7.152 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/1.266, allocations: 25.39 kB / 1.38 GB, free: 7.137 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009463/1.267, allocations: 449.4 kB / 1.38 GB, free: 6.73 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/1.267, allocations: 0.7387 MB / 1.381 GB, free: 5.961 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001338/1.268, allocations: 38.97 kB / 1.381 GB, free: 5.926 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001803/1.268, allocations: 82.88 kB / 1.381 GB, free: 5.883 MB / 0.8386 GB Notification: Performance of SimCode: time 7.41e-07/1.268, allocations: 4 kB / 1.381 GB, free: 5.879 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02068/1.289, allocations: 6.38 MB / 1.387 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002312/1.289, allocations: 167.3 kB / 1.387 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/3.101, allocations: 0 / 1.387 GB, free: 15.45 MB / 0.8542 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