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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,fileNamePrefix="Buildings_11_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.001612/0.001612, allocations: 108 kB / 15.61 MB, free: 152 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.001876/0.001876, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.668/2.668, allocations: 469.8 MB / 0.7424 GB, free: 7.492 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.00179, allocations: 63.28 kB / 0.9087 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2682, allocations: 159.2 MB / 1.064 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002067/0.2703, allocations: 0.7675 MB / 1.065 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001526/0.2719, allocations: 1.246 MB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.291e-05/0.2719, allocations: 8 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.315e-05/0.272, allocations: 15.8 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.471e-05/0.2721, allocations: 15.8 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006305/0.2727, allocations: 250 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.273, allocations: 267.6 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.2731, allocations: 49.11 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2733, allocations: 103.8 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.2734, allocations: 87.7 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.688e-05/0.2734, allocations: 24 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.453e-05/0.2735, allocations: 35.98 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.064e-05/0.2736, allocations: 43.89 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.2737, allocations: 95.67 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.274, allocations: 247.5 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.274, allocations: 0 / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.232e-06/0.274, allocations: 4 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.406e-06/0.274, allocations: 0 / 1.067 GB, free: 10.95 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.000592/0.2746, allocations: 490.5 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2747, allocations: 16.02 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.703e-05/0.2747, allocations: 50.73 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.875e-05/0.2748, allocations: 16.84 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005335/0.2753, allocations: 240.2 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.2754, allocations: 20.36 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.2754, allocations: 20.38 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.2756, allocations: 133.8 kB / 1.068 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.2757, allocations: 3.938 kB / 1.068 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.2757, allocations: 4 kB / 1.068 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2757, allocations: 0 / 1.068 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.2758, allocations: 75.95 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005922/0.2764, allocations: 452.1 kB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.2766, allocations: 94.55 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.232e-05/0.2767, allocations: 48.83 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.2767, allocations: 3.938 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.2769, allocations: 128.7 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.2769, allocations: 0 / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0004089/0.2773, allocations: 243.2 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.2774, allocations: 59.41 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.2775, allocations: 134.9 kB / 1.069 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.2776, allocations: 33.7 kB / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.681e-05/0.2776, allocations: 116.6 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.102e-05/0.2777, allocations: 39.53 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.2778, allocations: 69.67 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.2779, allocations: 322.8 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.2781, allocations: 67.95 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.2783, allocations: 130.1 kB / 1.07 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.2785, allocations: 213 kB / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2786, allocations: 0 / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004635/0.279, allocations: 320.6 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.064e-05/0.2791, allocations: 68.64 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2791, allocations: 4 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.2791, allocations: 4 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.629e-05/0.2791, allocations: 11.92 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.2792, allocations: 4 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.2795, allocations: 59.97 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.2795, allocations: 12 kB / 1.071 GB, free: 6.98 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.0001283/0.2796, allocations: 143 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.2797, allocations: 15.84 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.826e-05/0.2797, allocations: 8.844 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.2797, allocations: 4 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.2797, allocations: 3.984 kB / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2797, allocations: 0 / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004719/0.2802, allocations: 490.2 kB / 1.071 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2802, allocations: 0 / 1.071 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.684e-05/0.2802, allocations: 11.98 kB / 1.071 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.2802, allocations: 0 / 1.071 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.2803, allocations: 8 kB / 1.071 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2803, allocations: 0 / 1.071 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2803, allocations: 0 / 1.071 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003016/0.2806, allocations: 292.9 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.497e-05/0.2806, allocations: 92.95 kB / 1.072 GB, free: 5.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.2807, allocations: 7.938 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.633e-05/0.2807, allocations: 3.984 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.885e-05/0.2808, allocations: 11.98 kB / 1.072 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.2808, allocations: 8 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.736e-05/0.2809, allocations: 100.9 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2809, allocations: 0 / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002843/0.2812, allocations: 55.89 kB / 1.072 GB, free: 5.652 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.0006171/0.2818, allocations: 0.8285 MB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004079/0.2822, allocations: 306.9 kB / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.2822, allocations: 4.125 kB / 1.073 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.2823, allocations: 79.91 kB / 1.073 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.2826, allocations: 20.3 kB / 1.073 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002251/0.2849, allocations: 2.03 MB / 1.075 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.2852, allocations: 0.7124 MB / 1.076 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.245e-05/0.2852, allocations: 13.08 kB / 1.076 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.753e-05/0.2853, allocations: 31.64 kB / 1.076 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2853, allocations: 0 / 1.076 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2985/0.5838, allocations: 3.551 MB / 1.079 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.937/9.521, allocations: 6.844 kB / 1.079 GB, free: 13.95 MB / 0.8419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Latch.fmu > 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) Reference file matches