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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.004913/0.004913, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001386/0.001386, allocations: 202.8 kB / 16.68 MB, free: 5.969 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.684/2.684, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 68.09 kB / 1.083 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3048, allocations: 162.3 MB / 1.242 GB, free: 9.82 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001787/0.3066, allocations: 0.7719 MB / 1.243 GB, free: 9.051 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.3081, allocations: 1.24 MB / 1.244 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.462e-05/0.3081, allocations: 0 / 1.244 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.892e-05/0.3082, allocations: 7.875 kB / 1.244 GB, free: 7.789 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.957e-05/0.3083, allocations: 19.84 kB / 1.244 GB, free: 7.77 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000625/0.3089, allocations: 258.2 kB / 1.244 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.3092, allocations: 267.5 kB / 1.244 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.3093, allocations: 57.08 kB / 1.244 GB, free: 7.207 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.3094, allocations: 103.8 kB / 1.245 GB, free: 7.105 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.3096, allocations: 103.7 kB / 1.245 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/0.3096, allocations: 24 kB / 1.245 GB, free: 6.98 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.456e-05/0.3097, allocations: 39.98 kB / 1.245 GB, free: 6.941 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.868e-05/0.3098, allocations: 31.91 kB / 1.245 GB, free: 6.91 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.3099, allocations: 99.61 kB / 1.245 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002779/0.3102, allocations: 255.2 kB / 1.245 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3102, allocations: 4 kB / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.233e-06/0.3102, allocations: 0 / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.3102, allocations: 0 / 1.245 GB, free: 6.559 MB / 0.9981 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.0005868/0.3108, allocations: 498.3 kB / 1.246 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3108, allocations: 8.031 kB / 1.246 GB, free: 6 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.853e-05/0.3109, allocations: 46.73 kB / 1.246 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.539e-05/0.3109, allocations: 20.88 kB / 1.246 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004737/0.3114, allocations: 248.2 kB / 1.246 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.3114, allocations: 12.38 kB / 1.246 GB, free: 5.633 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.3115, allocations: 24.36 kB / 1.246 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.3117, allocations: 134.7 kB / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.3117, allocations: 0 / 1.246 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.3117, allocations: 11.98 kB / 1.246 GB, free: 5.461 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.3118, allocations: 0 / 1.246 GB, free: 5.461 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.3119, allocations: 63.97 kB / 1.246 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005467/0.3124, allocations: 460.3 kB / 1.247 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.3126, allocations: 94.53 kB / 1.247 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.14e-05/0.3127, allocations: 40.84 kB / 1.247 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.3127, allocations: 7.875 kB / 1.247 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.3129, allocations: 131.3 kB / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.3129, allocations: 0 / 1.247 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16): time 0.000398/0.3133, allocations: 237.5 kB / 1.247 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.3134, allocations: 59.34 kB / 1.247 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.3135, allocations: 148.7 kB / 1.247 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.3135, allocations: 33.7 kB / 1.247 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.885e-05/0.3136, allocations: 116.7 kB / 1.247 GB, free: 3.988 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.041e-05/0.3137, allocations: 39.73 kB / 1.247 GB, free: 3.949 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.3138, allocations: 73.67 kB / 1.247 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3139, allocations: 318.8 kB / 1.248 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.314, allocations: 67.95 kB / 1.248 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.3142, allocations: 136.2 kB / 1.248 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.3145, allocations: 222.1 kB / 1.248 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3145, allocations: 0 / 1.248 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004543/0.3149, allocations: 308.7 kB / 1.248 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.613e-05/0.315, allocations: 67.33 kB / 1.249 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.315, allocations: 7.984 kB / 1.249 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.315, allocations: 4 kB / 1.249 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.394e-05/0.3151, allocations: 7.938 kB / 1.249 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.3151, allocations: 4.25 kB / 1.249 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.3154, allocations: 63.83 kB / 1.249 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.3154, allocations: 23.98 kB / 1.249 GB, free: 2.566 MB / 0.9981 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.0001139/0.3155, allocations: 134.4 kB / 1.249 GB, free: 2.426 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.3156, allocations: 19.88 kB / 1.249 GB, free: 2.406 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.3156, allocations: 12.84 kB / 1.249 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3156, allocations: 0 / 1.249 GB, free: 2.391 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.3156, allocations: 4 kB / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.3156, allocations: 0 / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004609/0.3161, allocations: 494.2 kB / 1.249 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3161, allocations: 0 / 1.249 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.423e-05/0.3161, allocations: 4 kB / 1.249 GB, free: 1.844 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3161, allocations: 0 / 1.249 GB, free: 1.844 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.3162, allocations: 3.984 kB / 1.249 GB, free: 1.84 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3162, allocations: 8 kB / 1.249 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3162, allocations: 0 / 1.249 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002897/0.3165, allocations: 294.1 kB / 1.25 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.514e-05/0.3165, allocations: 85.06 kB / 1.25 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/0.3165, allocations: 3.984 kB / 1.25 GB, free: 1.426 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.849e-05/0.3166, allocations: 8 kB / 1.25 GB, free: 1.418 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.343e-05/0.3166, allocations: 7.984 kB / 1.25 GB, free: 1.41 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.3167, allocations: 15.98 kB / 1.25 GB, free: 1.395 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.592e-05/0.3167, allocations: 99.27 kB / 1.25 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3167, allocations: 0 / 1.25 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002773/0.317, allocations: 51.89 kB / 1.25 GB, free: 1.246 MB / 0.9981 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.0006199/0.3176, allocations: 0.8338 MB / 1.251 GB, free: 396 kB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003804/0.318, allocations: 294.6 kB / 1.251 GB, free: 76 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.318, allocations: 3.938 kB / 1.251 GB, free: 72 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.5019/0.8199, allocations: 71.97 kB / 1.251 GB, free: 0 / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.8203, allocations: 20.48 kB / 1.251 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.8222, allocations: 2.034 MB / 1.253 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001054/0.8223, allocations: 0.7095 MB / 1.254 GB, free: 12.62 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.894e-05/0.8223, allocations: 13.38 kB / 1.254 GB, free: 12.62 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.357e-05/0.8224, allocations: 36.73 kB / 1.254 GB, free: 12.62 MB / 0.9981 GB Notification: Performance of SimCode: time 5.21e-07/0.8224, allocations: 3.844 kB / 1.254 GB, free: 12.62 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.102/5.924, allocations: 3.597 MB / 1.257 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.28/27.2, allocations: 10.78 kB / 1.257 GB, free: 12.18 MB / 0.9981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Latch_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 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.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) Reference file matches