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.001422/0.001422, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001329/0.001329, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.354/1.354, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.674/2.674, allocations: 469.4 MB / 0.7427 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 67.62 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3119, allocations: 159.1 MB / 1.064 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001953/0.3139, allocations: 0.7616 MB / 1.065 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001455/0.3153, allocations: 1.248 MB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.728e-05/0.3154, allocations: 4 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/0.3155, allocations: 15.8 kB / 1.066 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.489e-05/0.3155, allocations: 7.875 kB / 1.066 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006303/0.3162, allocations: 257 kB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002481/0.3164, allocations: 263.7 kB / 1.067 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.3166, allocations: 57.08 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.3167, allocations: 103.7 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.3168, allocations: 95.67 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.627e-05/0.3169, allocations: 24 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.864e-05/0.3169, allocations: 39.98 kB / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.48e-05/0.317, allocations: 31.91 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.3171, allocations: 95.67 kB / 1.067 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002442/0.3173, allocations: 235.6 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.3174, allocations: 0 / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.065e-06/0.3174, allocations: 4 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.3174, allocations: 4 kB / 1.067 GB, free: 11.79 MB / 0.8419 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.0005676/0.318, allocations: 494.5 kB / 1.068 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.318, allocations: 12.62 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.29e-05/0.3181, allocations: 16.84 kB / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005312/0.3186, allocations: 248.2 kB / 1.068 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.3186, allocations: 8.375 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.28e-05/0.3187, allocations: 32.36 kB / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.3189, allocations: 126.1 kB / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3189, allocations: 3.938 kB / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.3189, allocations: 11.92 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.3189, allocations: 4 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.3191, allocations: 67.91 kB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005422/0.3196, allocations: 456.2 kB / 1.069 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001455/0.3198, allocations: 94.53 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.809e-05/0.3198, allocations: 40.84 kB / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 5.259e-06/0.3198, allocations: 0 / 1.069 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.3201, allocations: 139.3 kB / 1.069 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.263e-06/0.3201, allocations: 0 / 1.069 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.0003931/0.3205, allocations: 243.8 kB / 1.069 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.3205, allocations: 51.41 kB / 1.069 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.714e-05/0.3206, allocations: 149.1 kB / 1.069 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.3207, allocations: 29.7 kB / 1.07 GB, free: 9.402 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.162e-05/0.3207, allocations: 108.5 kB / 1.07 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.3208, allocations: 35.55 kB / 1.07 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.861e-05/0.3209, allocations: 73.67 kB / 1.07 GB, free: 9.18 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.399e-05/0.321, allocations: 322.8 kB / 1.07 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.3211, allocations: 75.89 kB / 1.07 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.3213, allocations: 129.5 kB / 1.07 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002274/0.3215, allocations: 219 kB / 1.07 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3215, allocations: 0 / 1.07 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004423/0.322, allocations: 311.4 kB / 1.071 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/0.322, allocations: 67.39 kB / 1.071 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.322, allocations: 4 kB / 1.071 GB, free: 7.973 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3221, allocations: 4 kB / 1.071 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.471e-05/0.3221, allocations: 8.188 kB / 1.071 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.3221, allocations: 4 kB / 1.071 GB, free: 7.957 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.3224, allocations: 55.88 kB / 1.071 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.3225, allocations: 19.98 kB / 1.071 GB, free: 7.883 MB / 0.8419 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.0001065/0.3226, allocations: 138.2 kB / 1.071 GB, free: 7.738 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/0.3226, allocations: 23.73 kB / 1.071 GB, free: 7.715 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.515e-05/0.3226, allocations: 12.84 kB / 1.071 GB, free: 7.703 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3226, allocations: 0 / 1.071 GB, free: 7.703 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3226, allocations: 0 / 1.071 GB, free: 7.703 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3227, allocations: 4 kB / 1.071 GB, free: 7.699 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004356/0.3231, allocations: 490.3 kB / 1.072 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3231, allocations: 0 / 1.072 GB, free: 7.164 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.351e-05/0.3231, allocations: 4 kB / 1.072 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3231, allocations: 7.984 kB / 1.072 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.3232, allocations: 7.984 kB / 1.072 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.3232, allocations: 4 kB / 1.072 GB, free: 7.141 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3232, allocations: 3.938 kB / 1.072 GB, free: 7.137 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002647/0.3234, allocations: 279.3 kB / 1.072 GB, free: 6.848 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.3235, allocations: 88.95 kB / 1.072 GB, free: 6.742 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.3235, allocations: 7.984 kB / 1.072 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.065e-05/0.3236, allocations: 4 kB / 1.072 GB, free: 6.73 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.181e-05/0.3236, allocations: 19.86 kB / 1.072 GB, free: 6.711 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.131e-05/0.3237, allocations: 15.98 kB / 1.072 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.705e-05/0.3237, allocations: 95.27 kB / 1.072 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3237, allocations: 0 / 1.072 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002886/0.324, allocations: 47.91 kB / 1.072 GB, free: 6.555 MB / 0.8419 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.0001427/0.3242, allocations: 112.3 kB / 1.072 GB, free: 6.438 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003867/0.3246, allocations: 309.1 kB / 1.072 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3246, allocations: 0 / 1.072 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.3247, allocations: 83.89 kB / 1.073 GB, free: 6.031 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.325, allocations: 19.92 kB / 1.073 GB, free: 6.012 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004333/0.3254, allocations: 289.7 kB / 1.073 GB, free: 5.691 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.3257, allocations: 0.7124 MB / 1.074 GB, free: 4.953 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.453e-05/0.3257, allocations: 15.44 kB / 1.074 GB, free: 4.938 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.3257, allocations: 0 / 1.074 GB, free: 4.938 MB / 0.8419 GB Notification: Performance of Templates: time 0.00333/0.329, allocations: 1.991 MB / 1.076 GB, free: 2.957 MB / 0.8419 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