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.001413/0.001413, allocations: 108.2 kB / 16.46 MB, free: 6.453 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.001502/0.001502, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.484/1.484, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.203/3.203, allocations: 0.49 GB / 0.7916 GB, free: 33.43 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.002109/0.002109, allocations: 68.98 kB / 1.149 GB, free: 26.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3604, allocations: 176.1 MB / 1.321 GB, free: 3.375 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.002262/0.3626, allocations: 0.6628 MB / 1.321 GB, free: 2.715 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001865/0.3645, allocations: 1.214 MB / 1.323 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.592e-05/0.3646, allocations: 0 / 1.323 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.612e-05/0.3646, allocations: 3.938 kB / 1.323 GB, free: 1.484 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.631e-05/0.3647, allocations: 23.8 kB / 1.323 GB, free: 1.461 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008377/0.3655, allocations: 214.4 kB / 1.323 GB, free: 1.258 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.3659, allocations: 171.7 kB / 1.323 GB, free: 1.09 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.3661, allocations: 8 kB / 1.323 GB, free: 1.082 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000149/0.3662, allocations: 67.88 kB / 1.323 GB, free: 1.016 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.3664, allocations: 63.84 kB / 1.323 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 3.971e-05/0.3664, allocations: 20 kB / 1.323 GB, free: 0.9336 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.244e-05/0.3665, allocations: 35.97 kB / 1.323 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.257e-05/0.3665, allocations: 7.938 kB / 1.323 GB, free: 0.8906 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.3667, allocations: 55.89 kB / 1.323 GB, free: 0.8359 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002712/0.3669, allocations: 155.8 kB / 1.323 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3669, allocations: 0 / 1.323 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.136e-06/0.3669, allocations: 0 / 1.323 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.3669, allocations: 0 / 1.323 GB, free: 0.6836 MB / 1.014 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.0007699/0.3677, allocations: 438.6 kB / 1.324 GB, free: 196 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.3678, allocations: 15.98 kB / 1.324 GB, free: 180 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.73e-05/0.3678, allocations: 38.75 kB / 1.324 GB, free: 132 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.927e-05/0.3679, allocations: 12.94 kB / 1.324 GB, free: 120 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.3681, allocations: 172.3 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.3681, allocations: 4.375 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/0.3682, allocations: 8.375 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.3683, allocations: 46.25 kB / 1.324 GB, free: 15.85 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.3683, allocations: 7.875 kB / 1.324 GB, free: 15.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.3683, allocations: 4 kB / 1.324 GB, free: 15.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3683, allocations: 3.984 kB / 1.324 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.85e-05/0.3684, allocations: 16 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005872/0.3689, allocations: 348.7 kB / 1.325 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.369, allocations: 34.56 kB / 1.325 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.272e-05/0.3691, allocations: 12.86 kB / 1.325 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.3691, allocations: 7.938 kB / 1.325 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.3692, allocations: 79.45 kB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.3692, allocations: 0 / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0003006/0.3695, allocations: 105.6 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.3696, allocations: 59.33 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.3697, allocations: 125.7 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.3698, allocations: 29.7 kB / 1.325 GB, free: 14.92 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.145e-05/0.3699, allocations: 88.14 kB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.14e-05/0.3699, allocations: 23.88 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.37, allocations: 57.69 kB / 1.325 GB, free: 14.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3702, allocations: 314.8 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.3703, allocations: 63.95 kB / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.3705, allocations: 88.27 kB / 1.326 GB, free: 14.27 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002253/0.3707, allocations: 163.6 kB / 1.326 GB, free: 14.08 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3707, allocations: 0 / 1.326 GB, free: 14.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005034/0.3712, allocations: 264.8 kB / 1.326 GB, free: 13.8 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 7.664e-05/0.3713, allocations: 67.39 kB / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.3713, allocations: 4 kB / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.3713, allocations: 0 / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.625e-05/0.3713, allocations: 8.062 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.3713, allocations: 4 kB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000375/0.3717, allocations: 52.36 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.72e-05/0.3718, allocations: 15.98 kB / 1.326 GB, free: 13.64 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.0001545/0.3719, allocations: 121.8 kB / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/0.3719, allocations: 4 kB / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.234e-05/0.372, allocations: 12.38 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.372, allocations: 7.938 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.372, allocations: 3.984 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.372, allocations: 3.984 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002674/0.3722, allocations: 181.5 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3722, allocations: 4 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.257e-05/0.3723, allocations: 3.938 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3723, allocations: 0 / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.3723, allocations: 4 kB / 1.326 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3723, allocations: 3.984 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3723, allocations: 4.312 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001878/0.3725, allocations: 113 kB / 1.327 GB, free: 13.1 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.534e-05/0.3725, allocations: 85.05 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.3726, allocations: 0 / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.32e-05/0.3726, allocations: 4 kB / 1.327 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.753e-05/0.3726, allocations: 7.984 kB / 1.327 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.3726, allocations: 7.938 kB / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.155e-05/0.3727, allocations: 87.28 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3727, allocations: 4 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002678/0.373, allocations: 35.92 kB / 1.327 GB, free: 12.86 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.0005867/0.3735, allocations: 0.6475 MB / 1.327 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003967/0.3739, allocations: 218.9 kB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3739, allocations: 4.062 kB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.7e-05/0.374, allocations: 23.92 kB / 1.328 GB, free: 11.91 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.3743, allocations: 15.98 kB / 1.328 GB, free: 11.9 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002366/0.3766, allocations: 1.723 MB / 1.329 GB, free: 10.05 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005589/0.3772, allocations: 0.6885 MB / 1.33 GB, free: 9.34 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.468e-05/0.3772, allocations: 4 kB / 1.33 GB, free: 9.336 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.942e-05/0.3773, allocations: 23.38 kB / 1.33 GB, free: 9.312 MB / 1.029 GB Notification: Performance of SimCode: time 5.91e-07/0.3773, allocations: 0 / 1.33 GB, free: 9.312 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02856/0.4058, allocations: 2.888 MB / 1.333 GB, free: 6.531 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.149/8.555, allocations: 6.656 kB / 1.333 GB, free: 6.527 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.159469882957637]