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.008897/0.008897, allocations: 97.48 kB / 15.73 MB, free: 5.988 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.001991/0.001991, allocations: 188 kB / 16.67 MB, free: 5.918 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.862/2.862, allocations: 469.8 MB / 0.7425 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3686, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002828/0.3714, allocations: 0.7713 MB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002069/0.3735, allocations: 1.252 MB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.191e-05/0.3735, allocations: 0 / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.426e-05/0.3736, allocations: 7.875 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.969e-05/0.3737, allocations: 15.86 kB / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007792/0.3745, allocations: 262.5 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.3748, allocations: 251.6 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.375, allocations: 49.03 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.3751, allocations: 103.7 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.3753, allocations: 103.7 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.3754, allocations: 24 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.3755, allocations: 39.98 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.446e-05/0.3755, allocations: 39.89 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.3757, allocations: 99.61 kB / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003853/0.376, allocations: 247.2 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3761, allocations: 0 / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.545e-06/0.3761, allocations: 0 / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.5e-05/0.3761, allocations: 0 / 1.224 GB, free: 10.55 MB / 0.9825 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.0008189/0.3769, allocations: 0.4885 MB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.3769, allocations: 12.02 kB / 1.224 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.038e-05/0.377, allocations: 20.89 kB / 1.224 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006084/0.3776, allocations: 240.2 kB / 1.225 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.3777, allocations: 12.38 kB / 1.225 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.281e-05/0.3777, allocations: 28.3 kB / 1.225 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.378, allocations: 127.7 kB / 1.225 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.378, allocations: 7.875 kB / 1.225 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/0.378, allocations: 11.92 kB / 1.225 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.3781, allocations: 4 kB / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.3782, allocations: 67.97 kB / 1.225 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006522/0.3789, allocations: 460.2 kB / 1.225 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.379, allocations: 78.53 kB / 1.225 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.099e-05/0.3791, allocations: 36.83 kB / 1.225 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.3791, allocations: 3.984 kB / 1.225 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.3793, allocations: 145 kB / 1.225 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=16): time 1.542e-06/0.3793, allocations: 0 / 1.225 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16): time 0.0004473/0.3798, allocations: 229.5 kB / 1.226 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.3798, allocations: 63.39 kB / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.38, allocations: 137.7 kB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/0.38, allocations: 37.7 kB / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.069e-05/0.3801, allocations: 124.7 kB / 1.226 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.3801, allocations: 35.69 kB / 1.226 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3802, allocations: 69.67 kB / 1.226 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3803, allocations: 322.8 kB / 1.226 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001425/0.3805, allocations: 67.95 kB / 1.227 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.3807, allocations: 126.1 kB / 1.227 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.381, allocations: 218.2 kB / 1.227 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.381, allocations: 0 / 1.227 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004682/0.3815, allocations: 312.7 kB / 1.227 GB, free: 6.82 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.72e-05/0.3815, allocations: 63.39 kB / 1.227 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3815, allocations: 0 / 1.227 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.3815, allocations: 8.25 kB / 1.227 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.923e-05/0.3816, allocations: 15.88 kB / 1.227 GB, free: 6.723 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.3816, allocations: 4 kB / 1.227 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.3819, allocations: 55.83 kB / 1.227 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.328e-05/0.3819, allocations: 19.98 kB / 1.227 GB, free: 6.645 MB / 0.9825 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.0001485/0.3821, allocations: 142.3 kB / 1.227 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.113e-05/0.3821, allocations: 15.88 kB / 1.227 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.464e-05/0.3821, allocations: 12.84 kB / 1.227 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.3821, allocations: 0 / 1.227 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.3821, allocations: 4 kB / 1.227 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3821, allocations: 0 / 1.227 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000504/0.3826, allocations: 498.2 kB / 1.228 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3826, allocations: 0 / 1.228 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.698e-06/0.3827, allocations: 0 / 1.228 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.3827, allocations: 4 kB / 1.228 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.3827, allocations: 7.984 kB / 1.228 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3827, allocations: 0 / 1.228 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3827, allocations: 3.938 kB / 1.228 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003221/0.383, allocations: 297.8 kB / 1.228 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.518e-05/0.3831, allocations: 85.06 kB / 1.228 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.3831, allocations: 3.984 kB / 1.228 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.018e-05/0.3831, allocations: 4 kB / 1.228 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.532e-05/0.3832, allocations: 19.97 kB / 1.228 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.3832, allocations: 12 kB / 1.228 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.056e-05/0.3833, allocations: 98.52 kB / 1.228 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3833, allocations: 0 / 1.228 GB, free: 5.363 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003679/0.3836, allocations: 51.88 kB / 1.228 GB, free: 5.312 MB / 0.9825 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.0002285/0.3839, allocations: 108.2 kB / 1.229 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004325/0.3843, allocations: 274.7 kB / 1.229 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3843, allocations: 0 / 1.229 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.3844, allocations: 59.89 kB / 1.229 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.3847, allocations: 25.95 kB / 1.229 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004873/0.3852, allocations: 267.2 kB / 1.229 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.3855, allocations: 0.7167 MB / 1.23 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.75e-05/0.3856, allocations: 9.031 kB / 1.23 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.756e-05/0.3856, allocations: 15.44 kB / 1.23 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.3856, allocations: 0 / 1.23 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of Templates: time 0.006083/0.3917, allocations: 2.16 MB / 1.232 GB, free: 1.633 MB / 0.9825 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=480 -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/jenkins/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