Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",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.382/2.382, allocations: 390.3 MB / 402.8 MB, free: 6.668 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.001423/0.001423, allocations: 176.8 kB / 496.1 MB, free: 12.85 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.777/1.777, allocations: 221.3 MB / 0.7915 GB, free: 5.383 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.0009039/0.000904, allocations: 91.81 kB / 0.9317 GB, free: 5.695 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.543e-05/3.555e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3271, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.091/1.418, allocations: 150.6 MB / 1.366 GB, free: 3.465 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/1.418, allocations: 67.39 kB / 1.366 GB, free: 3.43 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01143/1.43, allocations: 3.978 MB / 1.37 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.503e-06/1.43, allocations: 0 / 1.37 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.048e-05/1.43, allocations: 4 kB / 1.37 GB, free: 15.95 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.0006518/1.43, allocations: 498 kB / 1.37 GB, free: 15.42 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/1.43, allocations: 8.031 kB / 1.37 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.132e-05/1.431, allocations: 49.67 kB / 1.37 GB, free: 15.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.935e-05/1.431, allocations: 27.89 kB / 1.37 GB, free: 15.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/1.431, allocations: 167 kB / 1.371 GB, free: 15.13 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.121e-05/1.431, allocations: 23.61 kB / 1.371 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.329e-05/1.431, allocations: 31.48 kB / 1.371 GB, free: 15.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003317/1.431, allocations: 213.2 kB / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/1.431, allocations: 0 / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/1.431, allocations: 19.3 kB / 1.371 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/1.431, allocations: 8 kB / 1.371 GB, free: 14.9 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/1.431, allocations: 91.56 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007591/1.432, allocations: 0.5426 MB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000409/1.433, allocations: 301 kB / 1.372 GB, free: 14.15 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/1.433, allocations: 142.1 kB / 1.372 GB, free: 14.06 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/1.433, allocations: 4 kB / 1.372 GB, free: 14.06 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006444/1.434, allocations: 0.5038 MB / 1.372 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.623e-06/1.434, allocations: 0 / 1.372 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0006896/1.434, allocations: 476.3 kB / 1.373 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/1.434, allocations: 59.83 kB / 1.373 GB, free: 13.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.363e-05/1.434, allocations: 133.3 kB / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/1.434, allocations: 59.56 kB / 1.373 GB, free: 13.03 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.294e-05/1.435, allocations: 103.9 kB / 1.373 GB, free: 12.93 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.418e-05/1.435, allocations: 106.6 kB / 1.373 GB, free: 12.85 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/1.435, allocations: 13.19 kB / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001058/1.435, allocations: 336.2 kB / 1.374 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000264/1.435, allocations: 174 kB / 1.374 GB, free: 12.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/1.435, allocations: 264.8 kB / 1.374 GB, free: 12.19 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/1.436, allocations: 199.4 kB / 1.374 GB, free: 12.01 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/1.436, allocations: 0 / 1.374 GB, free: 12.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007583/1.436, allocations: 0.5463 MB / 1.375 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.371e-05/1.436, allocations: 73.89 kB / 1.375 GB, free: 11.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/1.437, allocations: 320 / 1.375 GB, free: 11.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/1.437, allocations: 12 kB / 1.375 GB, free: 11.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.184e-05/1.437, allocations: 23.42 kB / 1.375 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/1.437, allocations: 8 kB / 1.375 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003751/1.437, allocations: 78.94 kB / 1.375 GB, free: 11.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.098e-05/1.437, allocations: 31.23 kB / 1.375 GB, free: 11.35 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.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$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,$PRE.falCleTruIni.clr,falCleTruIni.clr,falCleTruIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,$PRE.truCleTruIni.clr,truCleTruIni.clr,truCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,$PRE.falCleFalIni.clr,falCleFalIni.clr,falCleFalIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,$PRE.truCleFalIni.clr,truCleFalIni.clr,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.latInp.y,latInp.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.0001415/1.437, allocations: 164.5 kB / 1.375 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/1.437, allocations: 27.72 kB / 1.375 GB, free: 11.18 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.065e-05/1.437, allocations: 39.06 kB / 1.375 GB, free: 11.17 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/1.437, allocations: 8 kB / 1.375 GB, free: 11.16 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/1.437, allocations: 0 / 1.375 GB, free: 11.16 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/1.437, allocations: 7.969 kB / 1.375 GB, free: 11.15 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009464/1.438, allocations: 0.8814 MB / 1.376 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/1.438, allocations: 0 / 1.376 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.385e-05/1.438, allocations: 14.94 kB / 1.376 GB, free: 10.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/1.438, allocations: 0 / 1.376 GB, free: 10.38 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.698e-05/1.438, allocations: 26.41 kB / 1.376 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/1.438, allocations: 4 kB / 1.376 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/1.438, allocations: 0 / 1.376 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006437/1.439, allocations: 0.5672 MB / 1.377 GB, free: 9.895 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.926e-05/1.439, allocations: 92.92 kB / 1.377 GB, free: 9.785 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.37e-05/1.439, allocations: 23.42 kB / 1.377 GB, free: 9.773 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/1.439, allocations: 11.8 kB / 1.377 GB, free: 9.766 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/1.44, allocations: 80.66 kB / 1.377 GB, free: 9.699 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-05/1.44, allocations: 34.66 kB / 1.377 GB, free: 9.676 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.838e-05/1.44, allocations: 96.77 kB / 1.377 GB, free: 9.586 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.44, allocations: 0 / 1.377 GB, free: 9.586 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003613/1.44, allocations: 98.42 kB / 1.377 GB, free: 9.504 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 48 ($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.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y,truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 18 (truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,falCleFalIni.u,falCleFalIni.clr,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.001064/1.441, allocations: 1.168 MB / 1.378 GB, free: 8.445 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007333/1.442, allocations: 0.5679 MB / 1.379 GB, free: 8 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/1.442, allocations: 0 / 1.379 GB, free: 8 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003317/1.442, allocations: 300.9 kB / 1.379 GB, free: 7.828 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/1.442, allocations: 27.34 kB / 1.379 GB, free: 7.809 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000911/1.443, allocations: 454.8 kB / 1.38 GB, free: 7.422 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/1.444, allocations: 0.7419 MB / 1.38 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001058/1.444, allocations: 34.97 kB / 1.38 GB, free: 6.617 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/1.444, allocations: 77.33 kB / 1.38 GB, free: 6.578 MB / 0.8386 GB Notification: Performance of SimCode: time 3.51e-07/1.444, allocations: 0 / 1.38 GB, free: 6.578 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01994/1.464, allocations: 6.089 MB / 1.386 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/1.464, allocations: 160.1 kB / 1.386 GB, free: 428 kB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/3.241, allocations: 2.25 kB / 1.386 GB, free: 428 kB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat does not exist to compare? outputFormat=mat