Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001492/0.001492, allocations: 113.1 kB / 15.99 MB, free: 6.348 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.001421/0.001421, allocations: 192.1 kB / 16.91 MB, free: 6.188 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.332/1.332, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.587/2.587, allocations: 469.8 MB / 0.7427 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 67.59 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2834, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002218/0.2857, allocations: 0.8323 MB / 1.065 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001734/0.2874, allocations: 1.244 MB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.357e-05/0.2875, allocations: 7.938 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.603e-05/0.2875, allocations: 3.938 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.497e-05/0.2876, allocations: 7.922 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006546/0.2883, allocations: 236.5 kB / 1.066 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002801/0.2886, allocations: 263.6 kB / 1.067 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.2887, allocations: 53.09 kB / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.2888, allocations: 99.8 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.289, allocations: 91.69 kB / 1.067 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/0.289, allocations: 24 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.245e-05/0.2891, allocations: 39.98 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.835e-05/0.2891, allocations: 31.91 kB / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.2893, allocations: 99.66 kB / 1.067 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.2895, allocations: 175.9 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2895, allocations: 3.938 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.402e-06/0.2895, allocations: 4 kB / 1.067 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.2895, allocations: 4 kB / 1.067 GB, free: 11.9 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.0006283/0.2901, allocations: 490.5 kB / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.2902, allocations: 12.03 kB / 1.068 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.845e-05/0.2902, allocations: 24.77 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005267/0.2908, allocations: 232.3 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.2908, allocations: 16.36 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.072e-05/0.2909, allocations: 24.38 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.2911, allocations: 144.2 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2911, allocations: 3.938 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.2911, allocations: 4 kB / 1.068 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.2911, allocations: 4 kB / 1.068 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.2913, allocations: 67.95 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005768/0.2919, allocations: 460.1 kB / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.292, allocations: 90.55 kB / 1.069 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.468e-05/0.2921, allocations: 48.77 kB / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 8.325e-06/0.2921, allocations: 0 / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.2924, allocations: 133.4 kB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.413e-06/0.2924, allocations: 0 / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.0004178/0.2928, allocations: 237.4 kB / 1.069 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.2929, allocations: 59.34 kB / 1.069 GB, free: 9.695 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.293, allocations: 140.8 kB / 1.069 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.293, allocations: 33.7 kB / 1.069 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.959e-05/0.2931, allocations: 108.6 kB / 1.069 GB, free: 9.402 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.735e-05/0.2931, allocations: 47.53 kB / 1.07 GB, free: 9.355 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.2933, allocations: 65.69 kB / 1.07 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.2934, allocations: 318.8 kB / 1.07 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.2935, allocations: 67.95 kB / 1.07 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.2937, allocations: 125.3 kB / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.294, allocations: 224.3 kB / 1.07 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.294, allocations: 0 / 1.07 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004655/0.2945, allocations: 315 kB / 1.071 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.21e-05/0.2945, allocations: 63.39 kB / 1.071 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2945, allocations: 4 kB / 1.071 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.2945, allocations: 0 / 1.071 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.015e-05/0.2946, allocations: 12.19 kB / 1.071 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.2946, allocations: 7.984 kB / 1.071 GB, free: 8.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.2949, allocations: 59.88 kB / 1.071 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.2949, allocations: 12 kB / 1.071 GB, free: 8 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.000135/0.2951, allocations: 146.8 kB / 1.071 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.2951, allocations: 19.75 kB / 1.071 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.986e-05/0.2951, allocations: 12.84 kB / 1.071 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2951, allocations: 4 kB / 1.071 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2952, allocations: 3.984 kB / 1.071 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.2952, allocations: 7.984 kB / 1.071 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004855/0.2957, allocations: 486.3 kB / 1.071 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2957, allocations: 0 / 1.071 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.265e-05/0.2957, allocations: 3.984 kB / 1.071 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.2957, allocations: 8 kB / 1.071 GB, free: 7.258 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.2957, allocations: 3.938 kB / 1.071 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.2957, allocations: 4 kB / 1.071 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2957, allocations: 0 / 1.071 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.296, allocations: 287.3 kB / 1.072 GB, free: 6.953 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.2961, allocations: 92.94 kB / 1.072 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.2961, allocations: 0 / 1.072 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.195e-05/0.2962, allocations: 7.984 kB / 1.072 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.792e-05/0.2962, allocations: 15.98 kB / 1.072 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.2962, allocations: 8 kB / 1.072 GB, free: 6.812 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.186e-05/0.2963, allocations: 99.27 kB / 1.072 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2963, allocations: 3.938 kB / 1.072 GB, free: 6.711 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002858/0.2966, allocations: 51.89 kB / 1.072 GB, free: 6.66 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.0001443/0.2968, allocations: 107.2 kB / 1.072 GB, free: 6.547 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004203/0.2972, allocations: 309.8 kB / 1.072 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.2972, allocations: 0 / 1.072 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.2973, allocations: 75.91 kB / 1.072 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.2976, allocations: 24.23 kB / 1.072 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004868/0.2981, allocations: 325.7 kB / 1.073 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.2984, allocations: 0.7124 MB / 1.073 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.553e-05/0.2985, allocations: 15.44 kB / 1.073 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.2985, allocations: 0 / 1.073 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of Templates: time 0.003752/0.3022, allocations: 1.972 MB / 1.075 GB, free: 3.055 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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