Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.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.Toggle,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.Toggle") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,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.Toggle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.367/2.367, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001195/0.001195, allocations: 180.2 kB / 487.4 MB, free: 5.051 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.646/1.646, allocations: 221.5 MB / 0.7824 GB, free: 0.9141 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.0009362/0.0009361, allocations: 95.89 kB / 0.9219 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.048e-05/2.049e-05, allocations: 6.109 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3222, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.041/1.364, allocations: 149.1 MB / 1.352 GB, free: 18.37 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/1.364, allocations: 70.05 kB / 1.352 GB, free: 18.37 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01243/1.376, allocations: 3.952 MB / 1.356 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.484e-06/1.377, allocations: 0 / 1.356 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.178e-05/1.377, allocations: 3.844 kB / 1.356 GB, free: 33.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.0006495/1.377, allocations: 487.1 kB / 1.356 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/1.377, allocations: 15.66 kB / 1.356 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.784e-05/1.377, allocations: 24.73 kB / 1.356 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/1.377, allocations: 176.4 kB / 1.356 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.088e-05/1.378, allocations: 18.88 kB / 1.356 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/1.378, allocations: 26.97 kB / 1.356 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001816/1.378, allocations: 81.33 kB / 1.356 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002817/1.378, allocations: 198.8 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/1.378, allocations: 0.6562 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/1.378, allocations: 16.78 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/1.378, allocations: 3.953 kB / 1.357 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007681/1.379, allocations: 0.4934 MB / 1.357 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/1.379, allocations: 264.7 kB / 1.357 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/1.379, allocations: 138.3 kB / 1.357 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/1.379, allocations: 0 / 1.357 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007042/1.38, allocations: 0.5467 MB / 1.358 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.643e-06/1.38, allocations: 0 / 1.358 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0006688/1.381, allocations: 427.2 kB / 1.358 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/1.381, allocations: 63.47 kB / 1.358 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/1.381, allocations: 117.9 kB / 1.359 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.176e-05/1.381, allocations: 53.94 kB / 1.359 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.721e-05/1.381, allocations: 102.4 kB / 1.359 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.892e-05/1.381, allocations: 103.6 kB / 1.359 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/1.381, allocations: 3.844 kB / 1.359 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001546/1.382, allocations: 336.9 kB / 1.359 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/1.382, allocations: 162.7 kB / 1.359 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002858/1.382, allocations: 260.6 kB / 1.359 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003883/1.382, allocations: 140.3 kB / 1.36 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/1.382, allocations: 0 / 1.36 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007916/1.383, allocations: 477.2 kB / 1.36 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.348e-05/1.383, allocations: 66.28 kB / 1.36 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.383, allocations: 7.844 kB / 1.36 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/1.383, allocations: 3.844 kB / 1.36 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.296e-05/1.383, allocations: 26.08 kB / 1.36 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/1.384, allocations: 13.78 kB / 1.36 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003787/1.384, allocations: 69.91 kB / 1.36 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.027e-05/1.384, allocations: 24.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.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.0002588/1.384, allocations: 148.1 kB / 1.36 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.173e-05/1.384, allocations: 29.91 kB / 1.36 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.961e-05/1.384, allocations: 36.41 kB / 1.36 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/1.384, allocations: 4.938 kB / 1.36 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/1.384, allocations: 0 / 1.36 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/1.384, allocations: 2.531 kB / 1.36 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/1.386, allocations: 0.8696 MB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/1.386, allocations: 0 / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.131e-05/1.386, allocations: 18.11 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/1.386, allocations: 3.875 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.23e-05/1.386, allocations: 18.64 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/1.386, allocations: 6.984 kB / 1.361 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.386, allocations: 11.62 kB / 1.361 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005895/1.386, allocations: 0.5831 MB / 1.362 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.82e-05/1.386, allocations: 92.61 kB / 1.362 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.855e-05/1.387, allocations: 30.16 kB / 1.362 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.921e-05/1.387, allocations: 3.328 kB / 1.362 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/1.387, allocations: 100.3 kB / 1.362 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.84e-05/1.387, allocations: 41.08 kB / 1.362 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.054e-05/1.387, allocations: 92.78 kB / 1.362 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.387, allocations: 0 / 1.362 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000404/1.387, allocations: 80.22 kB / 1.362 GB, free: 30.95 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.0002737/1.388, allocations: 152.3 kB / 1.363 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006944/1.388, allocations: 0.5246 MB / 1.363 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/1.388, allocations: 0 / 1.363 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002495/1.389, allocations: 247.5 kB / 1.363 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/1.389, allocations: 31.38 kB / 1.363 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005991/1.39, allocations: 342.7 kB / 1.364 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/1.39, allocations: 0.7442 MB / 1.364 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001264/1.39, allocations: 36.14 kB / 1.364 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/1.39, allocations: 48.98 kB / 1.364 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of SimCode: time 4.01e-07/1.39, allocations: 0 / 1.364 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of Templates: time 0.007335/1.398, allocations: 4.363 MB / 1.369 GB, free: 29.52 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches