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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001155, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 191 kB / 16.53 MB, free: 6.391 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.659/2.659, allocations: 469.4 MB / 0.742 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 68.92 kB / 0.9083 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2832, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002113/0.2854, allocations: 0.7753 MB / 1.064 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001511/0.2869, allocations: 1.242 MB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.728e-05/0.287, allocations: 4 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.542e-05/0.2871, allocations: 15.86 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.339e-05/0.2872, allocations: 19.73 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006656/0.2879, allocations: 258 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.2881, allocations: 259.7 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.2883, allocations: 53.09 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.2884, allocations: 103.7 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.2885, allocations: 87.7 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.203e-05/0.2886, allocations: 24 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.2887, allocations: 39.98 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.354e-05/0.2888, allocations: 39.88 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.2889, allocations: 95.69 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.2892, allocations: 247.5 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2892, allocations: 0 / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2892, allocations: 0 / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.2892, allocations: 0 / 1.067 GB, free: 11.27 MB / 0.8262 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.0005706/0.2898, allocations: 0.4907 MB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.2898, allocations: 12.03 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.2898, allocations: 42.73 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.277e-05/0.2899, allocations: 16.84 kB / 1.067 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005292/0.2905, allocations: 240.2 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.2905, allocations: 12.38 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.2905, allocations: 24.36 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/0.2908, allocations: 133.9 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.2908, allocations: 0 / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.2908, allocations: 4 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.2908, allocations: 4 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.2909, allocations: 71.89 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005821/0.2915, allocations: 460.1 kB / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.2917, allocations: 94.53 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.662e-05/0.2918, allocations: 48.83 kB / 1.068 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.387e-06/0.2918, allocations: 3.938 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002377/0.292, allocations: 128 kB / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.352e-06/0.292, allocations: 0 / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0004019/0.2924, allocations: 247 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.2925, allocations: 51.41 kB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.2926, allocations: 145.7 kB / 1.069 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.904e-05/0.2926, allocations: 33.64 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.057e-05/0.2927, allocations: 108.7 kB / 1.069 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.2927, allocations: 39.53 kB / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.2929, allocations: 69.67 kB / 1.069 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.293, allocations: 322.8 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.2931, allocations: 63.97 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.2933, allocations: 138 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002402/0.2935, allocations: 220.5 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2935, allocations: 0 / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004513/0.294, allocations: 320.7 kB / 1.07 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.628e-05/0.294, allocations: 59.41 kB / 1.07 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.294, allocations: 4 kB / 1.07 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.2941, allocations: 0 / 1.07 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.053e-05/0.2941, allocations: 19.92 kB / 1.07 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2941, allocations: 0 / 1.07 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.2944, allocations: 55.84 kB / 1.07 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.2945, allocations: 24.05 kB / 1.07 GB, free: 7.297 MB / 0.8262 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.0001132/0.2946, allocations: 135.5 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.2946, allocations: 11.84 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.275e-05/0.2947, allocations: 16.83 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2947, allocations: 0 / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2947, allocations: 0 / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2947, allocations: 4 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/0.2951, allocations: 491.6 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.2952, allocations: 0 / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-05/0.2952, allocations: 3.938 kB / 1.071 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2952, allocations: 4 kB / 1.071 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.2952, allocations: 3.984 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.2952, allocations: 4 kB / 1.071 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2952, allocations: 0 / 1.071 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002701/0.2955, allocations: 288.6 kB / 1.071 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.619e-05/0.2955, allocations: 88.95 kB / 1.071 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.2956, allocations: 7.922 kB / 1.071 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.19e-05/0.2956, allocations: 8 kB / 1.071 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.556e-05/0.2957, allocations: 7.984 kB / 1.071 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.429e-05/0.2957, allocations: 15.98 kB / 1.071 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.655e-05/0.2958, allocations: 100.5 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.01e-07/0.2958, allocations: 0 / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003083/0.2961, allocations: 47.91 kB / 1.072 GB, free: 5.988 MB / 0.8262 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.0005928/0.2967, allocations: 0.8364 MB / 1.072 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003972/0.2971, allocations: 306.5 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2971, allocations: 4.438 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.301e-05/0.2972, allocations: 71.97 kB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.2975, allocations: 23.97 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/0.2996, allocations: 2.032 MB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.2999, allocations: 0.7163 MB / 1.075 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.267e-05/0.2999, allocations: 9.078 kB / 1.075 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.115e-05/0.3, allocations: 35.44 kB / 1.076 GB, free: 1.746 MB / 0.8262 GB Notification: Performance of SimCode: time 1.593e-06/0.3, allocations: 0 / 1.076 GB, free: 1.746 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02086/0.3208, allocations: 3.557 MB / 1.079 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.129/7.449, allocations: 12.47 kB / 1.079 GB, free: 14.28 MB / 0.8419 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.csv","/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) Reference file matches