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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 114.5 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002665/0.002665, allocations: 216 kB / 22.25 MB, free: 5.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.406/3.406, allocations: 0.505 GB / 0.8101 GB, free: 22.05 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 62.14 kB / 1.177 GB, free: 17.03 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3606, allocations: 180.2 MB / 1.353 GB, free: 8.473 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002593/0.3632, allocations: 0.7621 MB / 1.354 GB, free: 7.711 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.365, allocations: 1.276 MB / 1.355 GB, free: 6.422 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.813e-05/0.3651, allocations: 4 kB / 1.355 GB, free: 6.418 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.151e-05/0.3652, allocations: 15.81 kB / 1.355 GB, free: 6.402 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.657e-05/0.3653, allocations: 15.84 kB / 1.355 GB, free: 6.387 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007501/0.366, allocations: 254.8 kB / 1.355 GB, free: 6.145 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003851/0.3664, allocations: 251.7 kB / 1.355 GB, free: 5.898 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.3666, allocations: 41.28 kB / 1.355 GB, free: 5.859 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.3668, allocations: 107.7 kB / 1.356 GB, free: 5.754 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001941/0.367, allocations: 103.7 kB / 1.356 GB, free: 5.652 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.346e-05/0.367, allocations: 24 kB / 1.356 GB, free: 5.629 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.3671, allocations: 39.98 kB / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.61e-05/0.3672, allocations: 35.89 kB / 1.356 GB, free: 5.555 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.3673, allocations: 87.7 kB / 1.356 GB, free: 5.469 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003581/0.3677, allocations: 247.4 kB / 1.356 GB, free: 5.227 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3677, allocations: 0 / 1.356 GB, free: 5.227 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3677, allocations: 0 / 1.356 GB, free: 5.227 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.357e-06/0.3677, allocations: 0 / 1.356 GB, free: 5.227 MB / 1.045 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.0006935/0.3684, allocations: 429.2 kB / 1.356 GB, free: 4.762 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3684, allocations: 12.03 kB / 1.356 GB, free: 4.75 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.279e-05/0.3685, allocations: 42.73 kB / 1.357 GB, free: 4.699 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.302e-05/0.3685, allocations: 20.83 kB / 1.357 GB, free: 4.68 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005268/0.3691, allocations: 190.4 kB / 1.357 GB, free: 4.469 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.3691, allocations: 16.31 kB / 1.357 GB, free: 4.453 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.551e-05/0.3691, allocations: 24.36 kB / 1.357 GB, free: 4.43 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.3694, allocations: 113.9 kB / 1.357 GB, free: 4.312 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3694, allocations: 4 kB / 1.357 GB, free: 4.309 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.3694, allocations: 7.969 kB / 1.357 GB, free: 4.301 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.3694, allocations: 4 kB / 1.357 GB, free: 4.297 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001186/0.3695, allocations: 51.97 kB / 1.357 GB, free: 4.246 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000709/0.3702, allocations: 447.3 kB / 1.357 GB, free: 3.766 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.3705, allocations: 128.9 kB / 1.357 GB, free: 3.633 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.3706, allocations: 56.83 kB / 1.358 GB, free: 3.574 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.3706, allocations: 0 / 1.358 GB, free: 3.574 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003655/0.3709, allocations: 175.2 kB / 1.358 GB, free: 3.391 MB / 1.045 GB Notification: Performance of pre-optimization done (n=32): time 1.573e-06/0.3709, allocations: 0 / 1.358 GB, free: 3.391 MB / 1.045 GB Notification: Performance of matching and sorting (n=32): time 0.0005648/0.3715, allocations: 322 kB / 1.358 GB, free: 3.07 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.3716, allocations: 71.27 kB / 1.358 GB, free: 2.988 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.3717, allocations: 149.7 kB / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.3718, allocations: 37.7 kB / 1.358 GB, free: 2.789 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.84e-05/0.3718, allocations: 109 kB / 1.358 GB, free: 2.68 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.661e-05/0.3719, allocations: 71.48 kB / 1.358 GB, free: 2.609 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.3721, allocations: 98.03 kB / 1.359 GB, free: 2.504 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.3722, allocations: 326.8 kB / 1.359 GB, free: 2.176 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.3724, allocations: 108.8 kB / 1.359 GB, free: 2.07 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/0.3727, allocations: 177.4 kB / 1.359 GB, free: 1.875 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003809/0.3731, allocations: 279.5 kB / 1.359 GB, free: 1.566 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.3731, allocations: 0 / 1.359 GB, free: 1.566 MB / 1.045 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006878/0.3737, allocations: 434.2 kB / 1.36 GB, free: 1.125 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.799e-05/0.3738, allocations: 73.2 kB / 1.36 GB, free: 1.043 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3738, allocations: 8.188 kB / 1.36 GB, free: 1.035 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.3738, allocations: 3.938 kB / 1.36 GB, free: 1.031 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.786e-05/0.3739, allocations: 15.94 kB / 1.36 GB, free: 1.016 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.3739, allocations: 7.938 kB / 1.36 GB, free: 1.008 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003569/0.3743, allocations: 71.72 kB / 1.36 GB, free: 0.9375 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.3743, allocations: 23.98 kB / 1.36 GB, free: 0.9141 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition15,$whenCondition16,$whenCondition13,$whenCondition14,tru.y,fal.y,truCleTruIni.clr,truCleFalIni.clr,falCleTruIni.clr,falCleFalIni.clr,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,$PRE.swiCleInp1.y,swiCleInp1.clr,swiCleInp1.u,swiCleInp.y,$PRE.swiCleInp.y,swiCleInp.clr,swiCleInp.u,truCleFalIni.y,$PRE.truCleFalIni.y,truCleFalIni.u,falCleFalIni.y,$PRE.falCleFalIni.y,falCleFalIni.u,truCleTruIni.y,$PRE.truCleTruIni.y,truCleTruIni.u,falCleTruIni.y,$PRE.falCleTruIni.y,falCleTruIni.u,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * 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.0001659/0.3745, allocations: 149.8 kB / 1.36 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.198e-05/0.3745, allocations: 19.89 kB / 1.36 GB, free: 0.7422 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.394e-05/0.3746, allocations: 21.97 kB / 1.36 GB, free: 0.7148 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3746, allocations: 7.938 kB / 1.36 GB, free: 0.707 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.3746, allocations: 4 kB / 1.36 GB, free: 0.7031 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.3746, allocations: 0 / 1.36 GB, free: 0.7031 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008147/0.3754, allocations: 0.6001 MB / 1.361 GB, free: 56 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3754, allocations: 4 kB / 1.361 GB, free: 52 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.578e-05/0.3754, allocations: 11.94 kB / 1.361 GB, free: 40 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.3754, allocations: 0 / 1.361 GB, free: 40 kB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.3754, allocations: 7.984 kB / 1.361 GB, free: 32 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.3754, allocations: 0 / 1.361 GB, free: 32 kB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3754, allocations: 0 / 1.361 GB, free: 32 kB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/0.3759, allocations: 368.7 kB / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.684e-05/0.3759, allocations: 19.84 kB / 1.361 GB, free: 15.64 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.3759, allocations: 4 kB / 1.361 GB, free: 15.63 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.835e-05/0.376, allocations: 4 kB / 1.361 GB, free: 15.63 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.112e-05/0.3761, allocations: 27.94 kB / 1.361 GB, free: 15.6 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.3761, allocations: 16 kB / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.413e-05/0.3762, allocations: 103.2 kB / 1.361 GB, free: 15.48 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3762, allocations: 0 / 1.361 GB, free: 15.48 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003385/0.3765, allocations: 64 kB / 1.361 GB, free: 15.42 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 32 (swiCleInp1.clr,swiCleInp.clr,truCleFalIni.u,swiCleInp1.u,swiCleInp.u,truCleTruIni.u,falCleTruIni.u,falCleFalIni.u,$whenCondition15,$whenCondition16,$whenCondition13,$whenCondition14,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$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 (32): * Single equations (assignments): 24 * 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.000811/0.3773, allocations: 0.906 MB / 1.362 GB, free: 14.49 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005474/0.3779, allocations: 355.2 kB / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3779, allocations: 384 / 1.363 GB, free: 14.12 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.378, allocations: 95.84 kB / 1.363 GB, free: 14.02 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.3783, allocations: 25.69 kB / 1.363 GB, free: 14 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003024/0.3814, allocations: 2.427 MB / 1.365 GB, free: 11.44 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.3817, allocations: 0.7242 MB / 1.366 GB, free: 10.7 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.914e-05/0.3818, allocations: 26.28 kB / 1.366 GB, free: 10.67 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.945e-05/0.3819, allocations: 47.42 kB / 1.366 GB, free: 10.62 MB / 1.061 GB Notification: Performance of SimCode: time 7.62e-07/0.3819, allocations: 0 / 1.366 GB, free: 10.62 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03126/0.4131, allocations: 4.741 MB / 1.37 GB, free: 6.016 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.61, allocations: 5.656 kB / 1.37 GB, free: 6.012 MB / 1.061 GB " [Timeout remaining time 288] (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 --stepSize=0.004 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.651447848882526]