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: 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_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.144/2.144, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001015/0.001015, allocations: 188.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.651/1.651, allocations: 221.3 MB / 0.7915 GB, free: 5.473 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.0008928/0.0008927, allocations: 87.97 kB / 0.9317 GB, free: 5.789 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.948e-05/2.951e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3416, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.131/1.472, allocations: 150.6 MB / 1.366 GB, free: 3.52 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/1.473, allocations: 69.16 kB / 1.366 GB, free: 3.484 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01214/1.485, allocations: 3.975 MB / 1.37 GB, free: 0 / 0.823 GB Notification: Performance of FrontEnd: time 1.813e-06/1.485, allocations: 0 / 1.37 GB, free: 0 / 0.823 GB Notification: Performance of Transformations before backend: time 8.266e-06/1.485, allocations: 4.047 kB / 1.37 GB, free: 15.99 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.0006547/1.485, allocations: 493.5 kB / 1.37 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/1.486, allocations: 8.031 kB / 1.37 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.08e-05/1.486, allocations: 23.91 kB / 1.37 GB, free: 15.44 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/1.486, allocations: 171 kB / 1.37 GB, free: 15.23 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.899e-05/1.486, allocations: 23.3 kB / 1.37 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.964e-05/1.486, allocations: 31.55 kB / 1.37 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000388/1.486, allocations: 208.4 kB / 1.371 GB, free: 15.03 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/1.486, allocations: 3.938 kB / 1.371 GB, free: 15.03 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.69e-05/1.486, allocations: 23.39 kB / 1.371 GB, free: 15.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/1.486, allocations: 7.953 kB / 1.371 GB, free: 15 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/1.487, allocations: 97.83 kB / 1.371 GB, free: 14.94 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008578/1.487, allocations: 0.5393 MB / 1.371 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004335/1.488, allocations: 291.3 kB / 1.372 GB, free: 14.26 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/1.488, allocations: 141.8 kB / 1.372 GB, free: 14.17 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/1.488, allocations: 4 kB / 1.372 GB, free: 14.17 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007219/1.489, allocations: 0.5065 MB / 1.372 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.983e-06/1.489, allocations: 0 / 1.372 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0008078/1.49, allocations: 473.4 kB / 1.373 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/1.49, allocations: 55.84 kB / 1.373 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/1.49, allocations: 134.7 kB / 1.373 GB, free: 13.18 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.78e-05/1.49, allocations: 57.94 kB / 1.373 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/1.49, allocations: 104.5 kB / 1.373 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.798e-05/1.49, allocations: 107.5 kB / 1.373 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.21e-05/1.49, allocations: 11.62 kB / 1.373 GB, free: 12.95 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001784/1.49, allocations: 340.9 kB / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/1.491, allocations: 171 kB / 1.374 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003672/1.491, allocations: 263.4 kB / 1.374 GB, free: 12.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/1.491, allocations: 196.3 kB / 1.374 GB, free: 12.13 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/1.491, allocations: 3.938 kB / 1.374 GB, free: 12.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008345/1.492, allocations: 0.543 MB / 1.375 GB, free: 11.68 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.842e-05/1.492, allocations: 75.14 kB / 1.375 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/1.492, allocations: 4 kB / 1.375 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/1.492, allocations: 4 kB / 1.375 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.664e-05/1.492, allocations: 33.98 kB / 1.375 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/1.492, allocations: 7.938 kB / 1.375 GB, free: 11.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004027/1.493, allocations: 78.44 kB / 1.375 GB, free: 11.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.015e-05/1.493, allocations: 30.67 kB / 1.375 GB, free: 11.46 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.0001791/1.493, allocations: 175.6 kB / 1.375 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.241e-05/1.493, allocations: 19.81 kB / 1.375 GB, free: 11.28 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.335e-05/1.493, allocations: 38.5 kB / 1.375 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/1.493, allocations: 4 kB / 1.375 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.493, allocations: 0 / 1.375 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/1.493, allocations: 3.984 kB / 1.375 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/1.494, allocations: 0.8842 MB / 1.376 GB, free: 10.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/1.494, allocations: 0 / 1.376 GB, free: 10.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.639e-05/1.495, allocations: 15.06 kB / 1.376 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/1.495, allocations: 0 / 1.376 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/1.495, allocations: 19.34 kB / 1.376 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/1.495, allocations: 4 kB / 1.376 GB, free: 10.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/1.495, allocations: 3.938 kB / 1.376 GB, free: 10.47 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007115/1.495, allocations: 0.5709 MB / 1.377 GB, free: 10 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.067e-05/1.495, allocations: 88.92 kB / 1.377 GB, free: 9.898 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.71e-05/1.495, allocations: 24.36 kB / 1.377 GB, free: 9.887 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.713e-05/1.496, allocations: 14.55 kB / 1.377 GB, free: 9.879 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/1.496, allocations: 82.39 kB / 1.377 GB, free: 9.809 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.42e-05/1.496, allocations: 30.11 kB / 1.377 GB, free: 9.789 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.386e-05/1.496, allocations: 101.2 kB / 1.377 GB, free: 9.699 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.496, allocations: 4 kB / 1.377 GB, free: 9.695 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003809/1.496, allocations: 101.9 kB / 1.377 GB, free: 9.609 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.0002679/1.497, allocations: 152.3 kB / 1.377 GB, free: 9.465 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008079/1.497, allocations: 0.5701 MB / 1.378 GB, free: 9.016 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/1.497, allocations: 4.125 kB / 1.378 GB, free: 9.012 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003486/1.498, allocations: 299.2 kB / 1.378 GB, free: 8.844 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/1.498, allocations: 35.8 kB / 1.378 GB, free: 8.816 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007288/1.499, allocations: 382.9 kB / 1.378 GB, free: 8.5 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/1.499, allocations: 0.7416 MB / 1.379 GB, free: 7.73 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001198/1.499, allocations: 34.97 kB / 1.379 GB, free: 7.695 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/1.499, allocations: 42.53 kB / 1.379 GB, free: 7.66 MB / 0.8386 GB Notification: Performance of SimCode: time 3.11e-07/1.499, allocations: 0 / 1.379 GB, free: 7.66 MB / 0.8386 GB Notification: Performance of Templates: time 0.008585/1.508, allocations: 4.235 MB / 1.383 GB, free: 3.457 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches