Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.001333/0.001333, allocations: 113 kB / 18.94 MB, free: 2.934 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.001566/0.001566, allocations: 208.2 kB / 22.25 MB, free: 5.086 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.48/1.48, allocations: 230.6 MB / 256 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.379/3.379, allocations: 0.49 GB / 0.7951 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.Nand,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand",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.00205/0.00205, allocations: 66.02 kB / 1.154 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.375, allocations: 176.1 MB / 1.326 GB, free: 1.996 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.00197/0.377, allocations: 0.6634 MB / 1.327 GB, free: 1.336 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001846/0.3788, allocations: 1.226 MB / 1.328 GB, free: 100 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.203e-05/0.3789, allocations: 3.938 kB / 1.328 GB, free: 96 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.033e-05/0.3789, allocations: 3.938 kB / 1.328 GB, free: 92 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.124e-05/0.379, allocations: 7.922 kB / 1.328 GB, free: 84 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000772/0.3797, allocations: 223.2 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002691/0.38, allocations: 167.7 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.577e-05/0.3801, allocations: 12 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.3802, allocations: 75.88 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.3804, allocations: 59.86 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.53e-05/0.3805, allocations: 16 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.304e-05/0.3805, allocations: 31.98 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.349e-05/0.3806, allocations: 11.92 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.876e-05/0.3807, allocations: 51.91 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.3809, allocations: 155.8 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3809, allocations: 0 / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.927e-06/0.3809, allocations: 3.984 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.809e-06/0.3809, allocations: 0 / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005104/0.3814, allocations: 361.5 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.3814, allocations: 12.03 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.639e-05/0.3815, allocations: 34.75 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.117e-05/0.3815, allocations: 12.92 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.3816, allocations: 118.4 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.3817, allocations: 4.375 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.3817, allocations: 8.375 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.3818, allocations: 54.23 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.3818, allocations: 3.938 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/0.3818, allocations: 4 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.3818, allocations: 0 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.922e-05/0.3819, allocations: 12 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005182/0.3824, allocations: 327.7 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 8.64e-05/0.3825, allocations: 34.56 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.959e-05/0.3825, allocations: 12.86 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.3825, allocations: 0 / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.3827, allocations: 95.33 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.3827, allocations: 0 / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0002578/0.383, allocations: 105.6 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.383, allocations: 55.34 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.3831, allocations: 113.8 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.3831, allocations: 29.7 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.611e-05/0.3832, allocations: 96.12 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.3832, allocations: 19.89 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.374e-05/0.3833, allocations: 49.69 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3835, allocations: 318.8 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.3837, allocations: 67.89 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.3838, allocations: 88.27 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.384, allocations: 164 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.384, allocations: 0 / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004535/0.3845, allocations: 268.8 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.736e-05/0.3845, allocations: 71.39 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3846, allocations: 128 / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.3846, allocations: 4 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.579e-05/0.3846, allocations: 8.062 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.3846, allocations: 3.938 kB / 1.331 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.3849, allocations: 55.89 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.385, allocations: 15.98 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,nand1.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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.0001287/0.3851, allocations: 131.5 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.375e-05/0.3851, allocations: 0 / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.609e-05/0.3852, allocations: 12.38 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3852, allocations: 3.984 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3852, allocations: 0 / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3852, allocations: 0 / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001747/0.3853, allocations: 144.7 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3853, allocations: 0 / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.139e-05/0.3854, allocations: 4 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3854, allocations: 0 / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.3854, allocations: 7.984 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3854, allocations: 4 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3854, allocations: 0 / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001638/0.3855, allocations: 116.9 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.354e-05/0.3856, allocations: 7.953 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.3856, allocations: 4 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.922e-05/0.3856, allocations: 3.938 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.3856, allocations: 7.984 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.3856, allocations: 4 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.114e-05/0.3857, allocations: 95.2 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3857, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002473/0.3859, allocations: 32 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,nand1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005619/0.3865, allocations: 0.6475 MB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003476/0.3869, allocations: 222.7 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3869, allocations: 0 / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.956e-05/0.3869, allocations: 27.97 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.3871, allocations: 11.98 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.3894, allocations: 1.717 MB / 1.334 GB, free: 9.012 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.3898, allocations: 0.6846 MB / 1.335 GB, free: 8.301 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.388e-05/0.3898, allocations: 4 kB / 1.335 GB, free: 8.297 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.911e-05/0.3898, allocations: 27.42 kB / 1.335 GB, free: 8.27 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/0.3898, allocations: 0 / 1.335 GB, free: 8.27 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03214/0.422, allocations: 3.026 MB / 1.338 GB, free: 5.391 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.79, allocations: 4.922 kB / 1.338 GB, free: 5.391 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Nand.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.56426405813545]