Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 88.39 kB / 20.23 MB, free: 4.172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 161.3 kB / 23.55 MB, free: 0.8633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.86/2.86, allocations: 377.8 MB / 0.6232 GB, free: 8.566 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.866e-06/2.866e-06, allocations: 0 / 0.8108 GB, free: 2.125 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.818e-05/4.105e-05, allocations: 6.25 kB / 0.8108 GB, free: 2.117 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001997/0.002038, allocations: 0.7508 MB / 0.8116 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.00202/0.004059, allocations: 1.268 MB / 0.8128 GB, free: 104 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.183e-05/0.00412, allocations: 5.406 kB / 0.8128 GB, free: 100 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 5.437e-05/0.004175, allocations: 15.8 kB / 0.8128 GB, free: 84 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.004277, allocations: 7.875 kB / 0.8128 GB, free: 76 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007708/0.005047, allocations: 249.1 kB / 0.8131 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003729/0.00542, allocations: 256.5 kB / 0.8133 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.005576, allocations: 41.27 kB / 0.8134 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.005812, allocations: 144.5 kB / 0.8135 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.005988, allocations: 79.78 kB / 0.8136 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.135e-05/0.006039, allocations: 24.88 kB / 0.8136 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.00614, allocations: 43.92 kB / 0.8136 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.444e-05/0.006205, allocations: 37.14 kB / 0.8137 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.006325, allocations: 79.86 kB / 0.8137 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0004017/0.006727, allocations: 291.1 kB / 0.814 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.006731, allocations: 0 / 0.814 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.92e-07/0.006732, allocations: 1.844 kB / 0.814 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.006737, allocations: 0 / 0.814 GB, free: 14.86 MB / 0.7761 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.0009351/0.007672, allocations: 417.2 kB / 0.8144 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.007709, allocations: 12.03 kB / 0.8144 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.007816, allocations: 36.83 kB / 0.8145 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005616/0.008377, allocations: 178.9 kB / 0.8146 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.0084, allocations: 13.91 kB / 0.8147 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.008449, allocations: 24.36 kB / 0.8147 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.008703, allocations: 123.5 kB / 0.8148 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.008712, allocations: 192 / 0.8148 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.008734, allocations: 13.33 kB / 0.8148 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.008744, allocations: 4.125 kB / 0.8148 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.008887, allocations: 68.66 kB / 0.8149 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006232/0.00951, allocations: 356.8 kB / 0.8152 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/0.009701, allocations: 82.47 kB / 0.8153 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.642e-05/0.009768, allocations: 34.81 kB / 0.8153 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.009777, allocations: 0 / 0.8153 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003069/0.01008, allocations: 138.1 kB / 0.8155 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=16): time 1.864e-06/0.01009, allocations: 0 / 0.8155 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of matching and sorting (n=16): time 0.0005229/0.01061, allocations: 254 kB / 0.8157 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.01067, allocations: 59.39 kB / 0.8158 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.01082, allocations: 146.2 kB / 0.8159 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.609e-05/0.01087, allocations: 34.89 kB / 0.8159 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.01098, allocations: 112.5 kB / 0.816 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.279e-05/0.01101, allocations: 27.81 kB / 0.8161 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.01116, allocations: 70.2 kB / 0.8161 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001919/0.01135, allocations: 322.8 kB / 0.8164 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.01156, allocations: 132.5 kB / 0.8166 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.01182, allocations: 191 kB / 0.8168 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003297/0.01215, allocations: 216.8 kB / 0.817 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.01216, allocations: 0 / 0.817 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000638/0.01279, allocations: 385 kB / 0.8173 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 6.742e-05/0.01286, allocations: 65.44 kB / 0.8174 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.01287, allocations: 0 / 0.8174 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.01289, allocations: 7.938 kB / 0.8174 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.358e-05/0.01292, allocations: 15.92 kB / 0.8174 GB, free: 11.1 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.01293, allocations: 4 kB / 0.8174 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.01328, allocations: 59.95 kB / 0.8175 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/0.01332, allocations: 19.98 kB / 0.8175 GB, free: 11.02 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,truCleFalIni.y,truCleTruIni.y,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp.y,falCleFalIni.y,falCleTruIni.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tru.y,fal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001529/0.01348, allocations: 134.4 kB / 0.8176 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.01351, allocations: 23.89 kB / 0.8176 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.248e-05/0.01356, allocations: 12.78 kB / 0.8177 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.01356, allocations: 7.938 kB / 0.8177 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.01357, allocations: 0.5625 kB / 0.8177 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.01357, allocations: 0.5625 kB / 0.8177 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005744/0.01415, allocations: 426.6 kB / 0.8181 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.01415, allocations: 0 / 0.8181 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.35e-05/0.01416, allocations: 4 kB / 0.8181 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.01416, allocations: 0 / 0.8181 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.01418, allocations: 16.48 kB / 0.8181 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.01419, allocations: 0 / 0.8181 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.01419, allocations: 0.8125 kB / 0.8181 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003836/0.01457, allocations: 303.4 kB / 0.8184 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.94e-05/0.01459, allocations: 16.83 kB / 0.8184 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.01461, allocations: 3.938 kB / 0.8184 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.836e-05/0.01468, allocations: 13.27 kB / 0.8184 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.01474, allocations: 15.92 kB / 0.8184 GB, free: 10 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.01476, allocations: 11.98 kB / 0.8184 GB, free: 9.992 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 8.47e-05/0.01485, allocations: 102.4 kB / 0.8185 GB, free: 9.895 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.01485, allocations: 1.688 kB / 0.8185 GB, free: 9.895 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003239/0.01517, allocations: 43.94 kB / 0.8186 GB, free: 9.852 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,falCleTruIni.y,truCleTruIni.y,falCleFalIni.y,truCleFalIni.y,swiCleInp.y,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001794/0.01535, allocations: 110.8 kB / 0.8187 GB, free: 9.738 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0005094/0.01586, allocations: 329.9 kB / 0.819 GB, free: 9.379 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01586, allocations: 0 / 0.819 GB, free: 9.379 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.01597, allocations: 59.91 kB / 0.8191 GB, free: 9.32 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.0163, allocations: 27.95 kB / 0.8191 GB, free: 9.293 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005508/0.01685, allocations: 266.1 kB / 0.8193 GB, free: 9.008 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.01696, allocations: 100.9 kB / 0.8194 GB, free: 8.891 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.104e-05/0.017, allocations: 14.2 kB / 0.8194 GB, free: 8.875 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.248e-05/0.01703, allocations: 16.5 kB / 0.8195 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of SimCode: time 4.71e-07/0.01703, allocations: 1.094 kB / 0.8195 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of Templates: time 0.006688/0.02372, allocations: 2.339 MB / 0.8217 GB, free: 6.602 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.876485188025981]