Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nand1.u1|nand1.u2|nand1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001449, allocations: 109.3 kB / 15.7 MB, free: 132 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.001725/0.001725, allocations: 195.8 kB / 16.63 MB, free: 6.609 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.507/1.507, allocations: 222.9 MB / 240.3 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.505/2.505, allocations: 390.3 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 63.67 kB / 0.9509 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3258, allocations: 140.4 MB / 1.088 GB, free: 1.375 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nand): time 0.001916/0.3277, allocations: 0.6651 MB / 1.089 GB, free: 0.7109 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.3294, allocations: 1.185 MB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.981e-05/0.3294, allocations: 0 / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.234e-05/0.3295, allocations: 3.938 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.698e-05/0.3296, allocations: 19.86 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000736/0.3303, allocations: 224.2 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.3305, allocations: 179.7 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.3307, allocations: 15.98 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.576e-05/0.3308, allocations: 63.89 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.3309, allocations: 63.84 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.3309, allocations: 12 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.331, allocations: 27.98 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.765e-05/0.3311, allocations: 15.92 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.508e-05/0.3312, allocations: 59.83 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002248/0.3314, allocations: 155.5 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3314, allocations: 0 / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3314, allocations: 0 / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.962e-06/0.3314, allocations: 0 / 1.091 GB, free: 14.7 MB / 0.8575 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.0006498/0.3321, allocations: 430.8 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.3321, allocations: 8.031 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.238e-05/0.3322, allocations: 12.84 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.3323, allocations: 164.4 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.3324, allocations: 16.3 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/0.3324, allocations: 12.38 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.3325, allocations: 46.19 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3325, allocations: 192 / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.3326, allocations: 11.94 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3326, allocations: 0 / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.044e-05/0.3326, allocations: 15.98 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.3331, allocations: 352.7 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.262e-05/0.3332, allocations: 42.52 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.549e-05/0.3333, allocations: 20.88 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.3333, allocations: 0 / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002127/0.3335, allocations: 75.36 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.3335, allocations: 0 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0002584/0.3338, allocations: 105.6 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.3338, allocations: 55.34 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.3339, allocations: 125.8 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.334, allocations: 29.7 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.013e-05/0.3341, allocations: 92.05 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.3341, allocations: 11.89 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3342, allocations: 53.67 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3344, allocations: 322.8 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/0.3345, allocations: 55.97 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.3347, allocations: 104.2 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.3349, allocations: 156.1 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3349, allocations: 0 / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004558/0.3354, allocations: 264.8 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.807e-05/0.3355, allocations: 67.39 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.3355, allocations: 0 / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.3355, allocations: 4 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.157e-05/0.3355, allocations: 11.92 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.3356, allocations: 4 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003544/0.3359, allocations: 55.97 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.336, allocations: 11.98 kB / 1.093 GB, free: 11.71 MB / 0.8575 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.0001335/0.3361, allocations: 129.1 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.3361, allocations: 8 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.3362, allocations: 4.375 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3362, allocations: 0 / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.3362, allocations: 4 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3362, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.3364, allocations: 181.6 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.3364, allocations: 4 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-06/0.3364, allocations: 3.938 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.3364, allocations: 0 / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.3364, allocations: 0 / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3364, allocations: 0 / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3364, allocations: 4 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001678/0.3366, allocations: 112.9 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.3367, allocations: 92.98 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.3367, allocations: 4 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.146e-05/0.3367, allocations: 4.062 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.016e-05/0.3368, allocations: 4 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.3368, allocations: 11.98 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.664e-05/0.3369, allocations: 91.22 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3369, allocations: 288 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002369/0.3371, allocations: 31.98 kB / 1.094 GB, free: 10.93 MB / 0.8575 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.0002269/0.3373, allocations: 103.8 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004299/0.3378, allocations: 254.6 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3378, allocations: 3.938 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.325e-05/0.3379, allocations: 27.98 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.3381, allocations: 12.53 kB / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/0.3386, allocations: 154.8 kB / 1.094 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.339, allocations: 0.6887 MB / 1.095 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.599e-05/0.339, allocations: 7.984 kB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.414e-05/0.339, allocations: 11.44 kB / 1.095 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.339, allocations: 0 / 1.095 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of Templates: time 0.00474/0.3438, allocations: 1.833 MB / 1.097 GB, free: 7.777 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches