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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.171/2.171, allocations: 387.4 MB / 394.9 MB, free: 13.32 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.001076/0.001076, allocations: 188.8 kB / 487.4 MB, free: 5.016 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.555/1.555, allocations: 221.5 MB / 0.7824 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 107.8 kB / 0.9219 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.605e-05/2.607e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3373, allocations: 142.4 MB / 1.206 GB, free: 43.93 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.01/1.347, allocations: 149.1 MB / 1.352 GB, free: 18.36 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/1.347, allocations: 70.55 kB / 1.352 GB, free: 18.36 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01223/1.36, allocations: 3.942 MB / 1.355 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.573e-06/1.36, allocations: 0 / 1.355 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.005e-05/1.36, allocations: 3.625 kB / 1.355 GB, free: 33.89 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.0006562/1.36, allocations: 486.7 kB / 1.356 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/1.36, allocations: 12.3 kB / 1.356 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/1.36, allocations: 25.64 kB / 1.356 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/1.361, allocations: 179.5 kB / 1.356 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.249e-05/1.361, allocations: 11.06 kB / 1.356 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.596e-05/1.361, allocations: 26.72 kB / 1.356 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002016/1.361, allocations: 89.53 kB / 1.356 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/1.361, allocations: 192 kB / 1.356 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/1.361, allocations: 0 / 1.356 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.345e-05/1.361, allocations: 16.84 kB / 1.356 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/1.361, allocations: 7.891 kB / 1.356 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007638/1.362, allocations: 0.4894 MB / 1.357 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/1.362, allocations: 275.6 kB / 1.357 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/1.363, allocations: 136.2 kB / 1.357 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/1.363, allocations: 3.984 kB / 1.357 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006104/1.363, allocations: 495.2 kB / 1.358 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.623e-06/1.363, allocations: 0 / 1.358 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.000616/1.364, allocations: 439.8 kB / 1.358 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/1.364, allocations: 55.69 kB / 1.358 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/1.364, allocations: 123.9 kB / 1.358 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.985e-05/1.364, allocations: 53.52 kB / 1.358 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.546e-05/1.364, allocations: 95.98 kB / 1.359 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.087e-05/1.364, allocations: 104.6 kB / 1.359 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/1.364, allocations: 3.906 kB / 1.359 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001333/1.364, allocations: 334 kB / 1.359 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/1.365, allocations: 156.7 kB / 1.359 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/1.365, allocations: 252.3 kB / 1.359 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/1.365, allocations: 132.2 kB / 1.36 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/1.365, allocations: 3.969 kB / 1.36 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007945/1.366, allocations: 463.5 kB / 1.36 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.768e-05/1.366, allocations: 66.91 kB / 1.36 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/1.366, allocations: 7.844 kB / 1.36 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/1.366, allocations: 7.781 kB / 1.36 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.071e-05/1.366, allocations: 29.59 kB / 1.36 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/1.366, allocations: 12.48 kB / 1.36 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003734/1.367, allocations: 69.31 kB / 1.36 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/1.367, allocations: 29.27 kB / 1.36 GB, free: 31.88 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.0001616/1.367, allocations: 140.4 kB / 1.36 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.015e-05/1.367, allocations: 37.91 kB / 1.36 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/1.367, allocations: 30.75 kB / 1.36 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/1.367, allocations: 4.625 kB / 1.36 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/1.367, allocations: 0 / 1.36 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/1.367, allocations: 3.188 kB / 1.36 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007798/1.368, allocations: 0.7976 MB / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/1.368, allocations: 7.938 kB / 1.361 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.852e-05/1.368, allocations: 14.97 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/1.368, allocations: 3.969 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.623e-05/1.368, allocations: 17.14 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/1.368, allocations: 5.25 kB / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/1.368, allocations: 0 / 1.361 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005323/1.369, allocations: 0.5352 MB / 1.362 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.118e-05/1.369, allocations: 92.72 kB / 1.362 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.117e-05/1.369, allocations: 19.16 kB / 1.362 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/1.369, allocations: 7.844 kB / 1.362 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/1.369, allocations: 77.16 kB / 1.362 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/1.369, allocations: 34.09 kB / 1.362 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.872e-05/1.369, allocations: 95.45 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.91e-07/1.369, allocations: 0 / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003667/1.37, allocations: 86.16 kB / 1.362 GB, free: 31.09 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.000235/1.37, allocations: 146.5 kB / 1.362 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005927/1.37, allocations: 0.5302 MB / 1.363 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.37, allocations: 4.562 kB / 1.363 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002413/1.371, allocations: 283.2 kB / 1.363 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/1.371, allocations: 22.56 kB / 1.363 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/1.372, allocations: 357 kB / 1.363 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/1.372, allocations: 0.7424 MB / 1.364 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001058/1.372, allocations: 35.53 kB / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/1.372, allocations: 40.55 kB / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.372, allocations: 0 / 1.364 GB, free: 30 MB / 0.8386 GB Notification: Performance of Templates: time 0.006844/1.379, allocations: 4.074 MB / 1.368 GB, free: 29.7 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches