Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nor,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Nor,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nor",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.00114/0.00114, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 196 kB / 16.53 MB, free: 6.699 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.333/2.333, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 67.89 kB / 0.8127 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7018/0.7035, allocations: 140.4 MB / 0.9497 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nor): time 0.00182/0.7054, allocations: 0.6553 MB / 0.9504 GB, free: 8.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001155/0.7066, allocations: 1.186 MB / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.139e-05/0.7066, allocations: 1.469 kB / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.7067, allocations: 7.922 kB / 0.9515 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.092e-05/0.7067, allocations: 9.047 kB / 0.9515 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005456/0.7073, allocations: 212.8 kB / 0.9518 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.7075, allocations: 185.1 kB / 0.9519 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.088e-05/0.7076, allocations: 14.27 kB / 0.9519 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.259e-05/0.7077, allocations: 62.98 kB / 0.952 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.427e-05/0.7078, allocations: 57.92 kB / 0.9521 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.598e-05/0.7078, allocations: 15.19 kB / 0.9521 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.942e-05/0.7079, allocations: 29.19 kB / 0.9521 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.015e-05/0.7079, allocations: 10.67 kB / 0.9521 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.811e-05/0.708, allocations: 58.72 kB / 0.9522 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001866/0.7082, allocations: 152.2 kB / 0.9523 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.7082, allocations: 0 / 0.9523 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.152e-06/0.7082, allocations: 1.094 kB / 0.9523 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.7082, allocations: 0 / 0.9523 GB, free: 7.27 MB / 0.7169 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.0004285/0.7086, allocations: 433.2 kB / 0.9527 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.7087, allocations: 8.531 kB / 0.9527 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.37e-05/0.7087, allocations: 36.03 kB / 0.9528 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.146e-05/0.7088, allocations: 8.25 kB / 0.9528 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.055e-05/0.7089, allocations: 175 kB / 0.9529 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.7089, allocations: 8.609 kB / 0.953 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.399e-05/0.7089, allocations: 14.5 kB / 0.953 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.967e-05/0.709, allocations: 46.56 kB / 0.953 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.709, allocations: 3.938 kB / 0.953 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.7091, allocations: 1.656 kB / 0.953 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.7091, allocations: 0 / 0.953 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.185e-05/0.7091, allocations: 17.05 kB / 0.953 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003953/0.7095, allocations: 357.8 kB / 0.9534 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.593e-05/0.7096, allocations: 28.17 kB / 0.9534 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.135e-05/0.7096, allocations: 18.81 kB / 0.9534 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.206e-05/0.7096, allocations: 1.094 kB / 0.9534 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.7098, allocations: 87.78 kB / 0.9535 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.7098, allocations: 0 / 0.9535 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002342/0.7101, allocations: 99.59 kB / 0.9536 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.7101, allocations: 53.62 kB / 0.9536 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.066e-05/0.7102, allocations: 126.8 kB / 0.9538 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.7102, allocations: 33.14 kB / 0.9538 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.682e-05/0.7103, allocations: 89.64 kB / 0.9539 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.431e-05/0.7103, allocations: 9.938 kB / 0.9539 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.973e-05/0.7104, allocations: 56.33 kB / 0.9539 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.171e-05/0.7104, allocations: 320.1 kB / 0.9543 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.7105, allocations: 63.5 kB / 0.9543 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.7107, allocations: 95.12 kB / 0.9544 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.7108, allocations: 163.1 kB / 0.9546 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.7108, allocations: 1.219 kB / 0.9546 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003953/0.7112, allocations: 262.2 kB / 0.9548 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.727e-05/0.7113, allocations: 64.5 kB / 0.9549 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.7113, allocations: 1.125 kB / 0.9549 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.7113, allocations: 6.234 kB / 0.9549 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.434e-05/0.7114, allocations: 6.469 kB / 0.9549 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.7114, allocations: 1.125 kB / 0.9549 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.7117, allocations: 56.28 kB / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.7118, allocations: 17.27 kB / 0.955 GB, free: 4.75 MB / 0.7169 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,nor1.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 7.144e-05/0.7119, allocations: 122.2 kB / 0.9551 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.345e-05/0.7119, allocations: 6.375 kB / 0.9551 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.507e-05/0.7119, allocations: 17.95 kB / 0.9551 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.7119, allocations: 1.125 kB / 0.9551 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.7119, allocations: 5.094 kB / 0.9551 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.7119, allocations: 0 / 0.9551 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.44e-05/0.712, allocations: 172.6 kB / 0.9553 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.712, allocations: 3.938 kB / 0.9553 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.685e-06/0.712, allocations: 2.594 kB / 0.9553 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.712, allocations: 3.984 kB / 0.9553 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.7121, allocations: 9.141 kB / 0.9553 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.7121, allocations: 1.188 kB / 0.9553 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.7121, allocations: 4 kB / 0.9553 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001182/0.7122, allocations: 112.3 kB / 0.9554 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.879e-05/0.7122, allocations: 78.36 kB / 0.9555 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.7122, allocations: 5.438 kB / 0.9555 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.932e-05/0.7123, allocations: 1.281 kB / 0.9555 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.7123, allocations: 6.672 kB / 0.9555 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.7123, allocations: 2.781 kB / 0.9555 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.223e-05/0.7124, allocations: 94.27 kB / 0.9556 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7124, allocations: 1.344 kB / 0.9556 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000233/0.7126, allocations: 33.91 kB / 0.9556 GB, free: 4.09 MB / 0.7169 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,nor1.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.0003342/0.7129, allocations: 0.6518 MB / 0.9562 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003157/0.7133, allocations: 249.5 kB / 0.9565 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7133, allocations: 0 / 0.9565 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.354e-05/0.7133, allocations: 31.91 kB / 0.9565 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.7136, allocations: 18.77 kB / 0.9565 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.715, allocations: 1.72 MB / 0.9582 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.7152, allocations: 0.6915 MB / 0.9589 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.696e-05/0.7152, allocations: 15.52 kB / 0.9589 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.279e-05/0.7152, allocations: 18.41 kB / 0.9589 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7152, allocations: 1.375 kB / 0.9589 GB, free: 0.9883 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.7352, allocations: 2.842 MB / 0.9617 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.86/8.595, allocations: 8.453 kB / 0.9617 GB, free: 15.46 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Nor.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches