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.319/2.319, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001091/0.001091, allocations: 182.3 kB / 0.4901 GB, free: 2.273 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.534/1.534, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.0009053/0.0009054, allocations: 98.31 kB / 0.9396 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003445, allocations: 10.5 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2748, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1849/0.4598, allocations: 150.6 MB / 1.376 GB, free: 2.875 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.4601, allocations: 67.97 kB / 1.376 GB, free: 2.809 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01229/0.4725, allocations: 3.996 MB / 1.38 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.545e-06/0.4725, allocations: 0 / 1.38 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.098e-05/0.4725, allocations: 8 kB / 1.38 GB, free: 14.8 MB / 0.8855 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.0008656/0.4734, allocations: 0.4911 MB / 1.381 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.4735, allocations: 8.562 kB / 1.381 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001093/0.4736, allocations: 46.53 kB / 1.381 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.4737, allocations: 31.8 kB / 1.381 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.4739, allocations: 171 kB / 1.381 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/0.4739, allocations: 20 kB / 1.381 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.529e-05/0.474, allocations: 31.98 kB / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000428/0.4745, allocations: 219.1 kB / 1.381 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.4745, allocations: 4 kB / 1.381 GB, free: 13.67 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-05/0.4746, allocations: 27.91 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.4746, allocations: 0 / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002058/0.4748, allocations: 96.16 kB / 1.381 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009428/0.4757, allocations: 0.5392 MB / 1.382 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000448/0.4762, allocations: 290.6 kB / 1.382 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.4762, allocations: 0 / 1.382 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008577/0.4771, allocations: 0.5741 MB / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 1.934e-06/0.4771, allocations: 0 / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.001049/0.4782, allocations: 0.6081 MB / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.4782, allocations: 67.77 kB / 1.384 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.4783, allocations: 132 kB / 1.384 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 8.75e-05/0.4784, allocations: 57.7 kB / 1.384 GB, free: 11.19 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.175e-05/0.4785, allocations: 105 kB / 1.384 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.4786, allocations: 110.8 kB / 1.384 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.782e-05/0.4787, allocations: 12 kB / 1.384 GB, free: 10.96 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.4788, allocations: 339.1 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003712/0.4792, allocations: 189.1 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.4796, allocations: 280.1 kB / 1.385 GB, free: 10.13 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003128/0.4799, allocations: 201.5 kB / 1.385 GB, free: 9.922 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4799, allocations: 0 / 1.385 GB, free: 9.922 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009196/0.4809, allocations: 0.5604 MB / 1.385 GB, free: 9.344 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.534e-05/0.4809, allocations: 67.7 kB / 1.385 GB, free: 9.266 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.481, allocations: 8 kB / 1.385 GB, free: 9.258 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.481, allocations: 4 kB / 1.385 GB, free: 9.254 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.56e-05/0.481, allocations: 27.86 kB / 1.386 GB, free: 9.227 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.4811, allocations: 7.938 kB / 1.386 GB, free: 9.219 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004135/0.4815, allocations: 87.88 kB / 1.386 GB, free: 9.133 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.587e-05/0.4816, allocations: 27.98 kB / 1.386 GB, free: 9.105 MB / 0.8855 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 () * Number of clocked 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/0.4818, allocations: 183.8 kB / 1.386 GB, free: 8.918 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.692e-05/0.4818, allocations: 27.8 kB / 1.386 GB, free: 8.891 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.365e-05/0.4819, allocations: 38.28 kB / 1.386 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.4819, allocations: 4 kB / 1.386 GB, free: 8.852 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.4819, allocations: 0 / 1.386 GB, free: 8.852 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.4819, allocations: 3.984 kB / 1.386 GB, free: 8.848 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.4833, allocations: 0.9699 MB / 1.387 GB, free: 7.809 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.4833, allocations: 4 kB / 1.387 GB, free: 7.805 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.824e-05/0.4834, allocations: 19.92 kB / 1.387 GB, free: 7.785 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.4834, allocations: 7.938 kB / 1.387 GB, free: 7.777 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.443e-05/0.4834, allocations: 20.09 kB / 1.387 GB, free: 7.758 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.4834, allocations: 8 kB / 1.387 GB, free: 7.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4835, allocations: 4 kB / 1.387 GB, free: 7.746 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007885/0.4842, allocations: 0.6302 MB / 1.388 GB, free: 7.062 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.088e-05/0.4843, allocations: 92.92 kB / 1.388 GB, free: 6.953 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.82e-05/0.4844, allocations: 27.98 kB / 1.388 GB, free: 6.926 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.4845, allocations: 11.98 kB / 1.388 GB, free: 6.914 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.4847, allocations: 95.8 kB / 1.388 GB, free: 6.82 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.01e-05/0.4848, allocations: 35.97 kB / 1.388 GB, free: 6.785 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.717e-05/0.4848, allocations: 103.3 kB / 1.388 GB, free: 6.684 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4848, allocations: 0 / 1.388 GB, free: 6.684 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000428/0.4853, allocations: 104 kB / 1.388 GB, free: 6.582 MB / 0.8855 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) * Number of clocked states: 0 () * 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.001293/0.4866, allocations: 1.492 MB / 1.389 GB, free: 5.035 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0008649/0.4874, allocations: 0.5789 MB / 1.39 GB, free: 4.434 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4875, allocations: 0 / 1.39 GB, free: 4.434 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003423/0.4878, allocations: 268 kB / 1.39 GB, free: 4.172 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.4881, allocations: 35.91 kB / 1.39 GB, free: 4.137 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/0.4901, allocations: 2.324 MB / 1.393 GB, free: 1.703 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.4905, allocations: 0.7426 MB / 1.393 GB, free: 0.9297 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001378/0.4907, allocations: 34.97 kB / 1.393 GB, free: 0.8984 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002555/0.491, allocations: 87.38 kB / 1.393 GB, free: 0.8125 MB / 0.8855 GB Notification: Performance of SimCode: time 4.91e-07/0.491, allocations: 0 / 1.393 GB, free: 0.8125 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.5118, allocations: 6.195 MB / 1.399 GB, free: 10.79 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.5121, allocations: 183.8 kB / 1.4 GB, free: 10.55 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.835/2.347, allocations: 0 / 1.4 GB, free: 10.55 MB / 0.9011 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