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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 110.5 kB / 16.41 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009844/0.0009845, allocations: 188.1 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.439/2.439, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.91 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7043/0.7057, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001973/0.7077, allocations: 0.7671 MB / 1.209 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001612/0.7093, allocations: 1.248 MB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.099e-05/0.7094, allocations: 8 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.991e-05/0.7094, allocations: 7.875 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.043e-05/0.7095, allocations: 15.8 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007314/0.7103, allocations: 253 kB / 1.211 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003468/0.7106, allocations: 259.7 kB / 1.211 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.7108, allocations: 61.03 kB / 1.211 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.711, allocations: 99.8 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.7112, allocations: 103.6 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.452e-05/0.7112, allocations: 24 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.7113, allocations: 51.91 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.759e-05/0.7114, allocations: 35.91 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.503e-05/0.7115, allocations: 91.67 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.7118, allocations: 247.3 kB / 1.212 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.7118, allocations: 0 / 1.212 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7118, allocations: 0 / 1.212 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.7118, allocations: 0 / 1.212 GB, free: 10.4 MB / 0.9356 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.0006173/0.7124, allocations: 496.2 kB / 1.212 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.7125, allocations: 8.031 kB / 1.212 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.7e-05/0.7126, allocations: 20.83 kB / 1.212 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005038/0.7131, allocations: 240.3 kB / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.7131, allocations: 12.38 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.7132, allocations: 28.3 kB / 1.212 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.7134, allocations: 134.9 kB / 1.213 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.7134, allocations: 3.938 kB / 1.213 GB, free: 9.375 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.7134, allocations: 7.984 kB / 1.213 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.7134, allocations: 4 kB / 1.213 GB, free: 9.363 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.7136, allocations: 71.91 kB / 1.213 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005549/0.7141, allocations: 456.1 kB / 1.213 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.7143, allocations: 94.53 kB / 1.213 GB, free: 8.695 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.7e-05/0.7144, allocations: 44.78 kB / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.7144, allocations: 0 / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.7147, allocations: 143.3 kB / 1.213 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=16): time 1.472e-06/0.7147, allocations: 0 / 1.213 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16): time 0.0004056/0.7151, allocations: 236.1 kB / 1.214 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.7151, allocations: 71.27 kB / 1.214 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.7152, allocations: 140.5 kB / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.7153, allocations: 33.7 kB / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.03e-05/0.7154, allocations: 112.4 kB / 1.214 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.7154, allocations: 27.7 kB / 1.214 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.7155, allocations: 69.67 kB / 1.214 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.7156, allocations: 322.8 kB / 1.214 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.7158, allocations: 67.95 kB / 1.214 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.7159, allocations: 123.7 kB / 1.214 GB, free: 7.238 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.7162, allocations: 218.9 kB / 1.215 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7162, allocations: 0 / 1.215 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004551/0.7166, allocations: 318.8 kB / 1.215 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.574e-05/0.7167, allocations: 67.39 kB / 1.215 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.7167, allocations: 256 / 1.215 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.7167, allocations: 8 kB / 1.215 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.943e-05/0.7168, allocations: 7.938 kB / 1.215 GB, free: 6.562 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.7168, allocations: 4 kB / 1.215 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003226/0.7171, allocations: 59.78 kB / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.35e-05/0.7172, allocations: 19.98 kB / 1.215 GB, free: 6.48 MB / 0.9356 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.0001269/0.7173, allocations: 133.8 kB / 1.215 GB, free: 6.34 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.357e-05/0.7173, allocations: 23.77 kB / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.194e-05/0.7174, allocations: 8.844 kB / 1.215 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.7174, allocations: 4 kB / 1.215 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.7174, allocations: 0 / 1.215 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.7174, allocations: 0 / 1.215 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004428/0.7178, allocations: 490.3 kB / 1.216 GB, free: 5.762 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.7178, allocations: 4 kB / 1.216 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.369e-05/0.7179, allocations: 8 kB / 1.216 GB, free: 5.75 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.7179, allocations: 3.938 kB / 1.216 GB, free: 5.746 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.7179, allocations: 7.984 kB / 1.216 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.7179, allocations: 0 / 1.216 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7179, allocations: 0 / 1.216 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.7182, allocations: 296.8 kB / 1.216 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.182e-05/0.7182, allocations: 84.92 kB / 1.216 GB, free: 5.332 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.7183, allocations: 7.984 kB / 1.216 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.888e-05/0.7183, allocations: 4 kB / 1.216 GB, free: 5.32 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/0.7184, allocations: 15.98 kB / 1.216 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.7184, allocations: 11.98 kB / 1.216 GB, free: 5.293 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.684e-05/0.7185, allocations: 95.27 kB / 1.216 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7185, allocations: 0 / 1.216 GB, free: 5.199 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000311/0.7188, allocations: 47.94 kB / 1.216 GB, free: 5.152 MB / 0.9356 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.0001644/0.719, allocations: 108.5 kB / 1.216 GB, free: 5.039 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003922/0.7194, allocations: 298.6 kB / 1.217 GB, free: 4.723 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.7194, allocations: 0 / 1.217 GB, free: 4.723 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.7195, allocations: 83.89 kB / 1.217 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/0.7198, allocations: 28 kB / 1.217 GB, free: 4.617 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004588/0.7203, allocations: 300 kB / 1.217 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.7206, allocations: 0.709 MB / 1.218 GB, free: 3.562 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.833e-05/0.7206, allocations: 19.42 kB / 1.218 GB, free: 3.547 MB / 0.9356 GB Notification: Performance of SimCode: time 2.51e-07/0.7206, allocations: 0 / 1.218 GB, free: 3.547 MB / 0.9356 GB Notification: Performance of Templates: time 0.003664/0.7243, allocations: 1.979 MB / 1.22 GB, free: 1.574 MB / 0.9356 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result:falCleFalIni.clr,falCleFalIni.u,falCleFalIni.y,falCleTruIni.clr,falCleTruIni.u,falCleTruIni.y,swiCleInp.clr,swiCleInp.u,swiCleInp.y,swiCleInp1.clr,swiCleInp1.u,swiCleInp1.y,time,truCleFalIni.clr,truCleFalIni.u,truCleFalIni.y,truCleTruIni.clr,truCleTruIni.u,truCleTruIni.y