Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Latch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.202/2.202, allocations: 387.1 MB / 399.7 MB, free: 9.559 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.0009495/0.0009495, allocations: 183.5 kB / 492.3 MB, free: 0.6562 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.649/1.649, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0008718/0.0008718, allocations: 101.3 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.164e-05/7.187e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3444, allocations: 142.3 MB / 1.213 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.129/1.474, allocations: 149.8 MB / 1.359 GB, free: 18.73 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/1.474, allocations: 69.05 kB / 1.359 GB, free: 18.73 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.017/1.491, allocations: 3.973 MB / 1.363 GB, free: 34.24 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.793e-06/1.491, allocations: 3.656 kB / 1.363 GB, free: 34.24 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.301e-05/1.491, allocations: 0 / 1.363 GB, free: 34.24 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.00105/1.492, allocations: 488.2 kB / 1.363 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/1.492, allocations: 7.656 kB / 1.363 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001382/1.492, allocations: 55.22 kB / 1.363 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/1.493, allocations: 24.52 kB / 1.363 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/1.493, allocations: 176.4 kB / 1.363 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.39e-05/1.493, allocations: 23.38 kB / 1.363 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/1.493, allocations: 32.83 kB / 1.363 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/1.494, allocations: 213.3 kB / 1.364 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/1.494, allocations: 0 / 1.364 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.827e-05/1.494, allocations: 19.78 kB / 1.364 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/1.494, allocations: 7.797 kB / 1.364 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003012/1.494, allocations: 88.84 kB / 1.364 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/1.495, allocations: 0.5332 MB / 1.364 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006175/1.496, allocations: 301.6 kB / 1.365 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003032/1.496, allocations: 140.8 kB / 1.365 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/1.496, allocations: 3.875 kB / 1.365 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009616/1.497, allocations: 0.4967 MB / 1.365 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 3.066e-06/1.497, allocations: 0 / 1.365 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.001102/1.498, allocations: 481.4 kB / 1.366 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/1.498, allocations: 62.92 kB / 1.366 GB, free: 33 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/1.498, allocations: 130 kB / 1.366 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0001076/1.499, allocations: 56.86 kB / 1.366 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/1.499, allocations: 106.5 kB / 1.366 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/1.499, allocations: 101.7 kB / 1.366 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.945e-05/1.499, allocations: 21.22 kB / 1.366 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001457/1.499, allocations: 334.3 kB / 1.366 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004741/1.5, allocations: 173.4 kB / 1.367 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005178/1.5, allocations: 267.9 kB / 1.367 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004166/1.501, allocations: 193.1 kB / 1.367 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/1.501, allocations: 0 / 1.367 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001232/1.502, allocations: 0.5431 MB / 1.368 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.302e-05/1.502, allocations: 73.62 kB / 1.368 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/1.502, allocations: 0 / 1.368 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.177e-05/1.502, allocations: 7.656 kB / 1.368 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/1.502, allocations: 26.22 kB / 1.368 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.776e-05/1.502, allocations: 7.188 kB / 1.368 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006354/1.503, allocations: 82.94 kB / 1.368 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/1.503, allocations: 29.77 kB / 1.368 GB, free: 32.03 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.0002309/1.503, allocations: 172.3 kB / 1.368 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.976e-05/1.503, allocations: 29.8 kB / 1.368 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/1.503, allocations: 39.92 kB / 1.368 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/1.503, allocations: 3.844 kB / 1.368 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/1.503, allocations: 0 / 1.368 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/1.503, allocations: 3.141 kB / 1.368 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/1.505, allocations: 0.8862 MB / 1.369 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/1.505, allocations: 0 / 1.369 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.768e-05/1.505, allocations: 14.5 kB / 1.369 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.525e-06/1.505, allocations: 0 / 1.369 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.817e-05/1.505, allocations: 26.08 kB / 1.369 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/1.505, allocations: 3.984 kB / 1.369 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/1.505, allocations: 3.375 kB / 1.369 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/1.506, allocations: 0.5653 MB / 1.37 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.983e-05/1.506, allocations: 95.69 kB / 1.37 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/1.506, allocations: 23.95 kB / 1.37 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/1.506, allocations: 13.67 kB / 1.37 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/1.507, allocations: 76.98 kB / 1.37 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.924e-05/1.507, allocations: 32.61 kB / 1.37 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.748e-05/1.507, allocations: 103.9 kB / 1.37 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.5e-07/1.507, allocations: 4 kB / 1.37 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007081/1.508, allocations: 97.2 kB / 1.37 GB, free: 31.2 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.00162/1.509, allocations: 1.154 MB / 1.371 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001188/1.51, allocations: 0.5785 MB / 1.372 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/1.511, allocations: 0 / 1.372 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0005045/1.511, allocations: 302.2 kB / 1.372 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/1.511, allocations: 25.56 kB / 1.372 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/1.513, allocations: 465.3 kB / 1.372 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/1.513, allocations: 0.74 MB / 1.373 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001679/1.514, allocations: 34.81 kB / 1.373 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/1.514, allocations: 80.75 kB / 1.373 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of SimCode: time 8.02e-07/1.514, allocations: 0 / 1.373 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/1.539, allocations: 6.081 MB / 1.379 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/1.54, allocations: 153.2 kB / 1.379 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/3.301, allocations: 0.75 kB / 1.379 GB, free: 28.71 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat does not exist to compare? outputFormat=mat