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.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.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nor1.u1|nor1.u2|nor1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nor1.u1|nor1.u2|nor1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 107.4 kB / 16.36 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.399/1.399, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.327/2.327, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 66.53 kB / 0.814 GB, free: 32.67 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3014, allocations: 140.4 MB / 0.9511 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nor): time 0.001896/0.3033, allocations: 0.6551 MB / 0.9518 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.3048, allocations: 1.193 MB / 0.9529 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.976e-05/0.3048, allocations: 3.938 kB / 0.9529 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.959e-05/0.3049, allocations: 3.938 kB / 0.9529 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.068e-05/0.3049, allocations: 15.92 kB / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000623/0.3056, allocations: 218.8 kB / 0.9532 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002347/0.3058, allocations: 179.7 kB / 0.9533 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.625e-05/0.3059, allocations: 16 kB / 0.9534 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.864e-05/0.306, allocations: 71.88 kB / 0.9534 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.3062, allocations: 67.77 kB / 0.9535 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.065e-05/0.3062, allocations: 12 kB / 0.9535 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.942e-05/0.3063, allocations: 31.98 kB / 0.9535 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.112e-05/0.3063, allocations: 8 kB / 0.9535 GB, free: 5.559 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.297e-05/0.3064, allocations: 59.81 kB / 0.9536 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.3066, allocations: 139.7 kB / 0.9537 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3066, allocations: 0 / 0.9537 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3066, allocations: 0 / 0.9537 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.097e-06/0.3066, allocations: 0 / 0.9537 GB, free: 5.363 MB / 0.7325 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.0005555/0.3072, allocations: 446.6 kB / 0.9542 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3073, allocations: 11.97 kB / 0.9542 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.522e-05/0.3073, allocations: 12.84 kB / 0.9542 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.3074, allocations: 168.3 kB / 0.9543 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.3075, allocations: 12.36 kB / 0.9543 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.3075, allocations: 8.375 kB / 0.9544 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.986e-05/0.3076, allocations: 46.25 kB / 0.9544 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.3076, allocations: 192 / 0.9544 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.3076, allocations: 7.938 kB / 0.9544 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3077, allocations: 0 / 0.9544 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.031e-05/0.3077, allocations: 19.98 kB / 0.9544 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004562/0.3082, allocations: 360.6 kB / 0.9548 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.87e-05/0.3082, allocations: 34.52 kB / 0.9548 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.562e-05/0.3083, allocations: 16.94 kB / 0.9548 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.347e-06/0.3083, allocations: 0 / 0.9548 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001528/0.3085, allocations: 79.38 kB / 0.9549 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.3085, allocations: 0 / 0.9549 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0002339/0.3087, allocations: 105.5 kB / 0.955 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.3088, allocations: 59.34 kB / 0.9551 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.14e-05/0.3089, allocations: 121.8 kB / 0.9552 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.891e-05/0.3089, allocations: 29.7 kB / 0.9552 GB, free: 3.641 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.541e-05/0.309, allocations: 92.12 kB / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.356e-05/0.309, allocations: 7.812 kB / 0.9553 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.387e-05/0.3091, allocations: 57.69 kB / 0.9553 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.3092, allocations: 322.8 kB / 0.9557 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.3093, allocations: 55.97 kB / 0.9557 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.3095, allocations: 96.19 kB / 0.9558 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.3097, allocations: 163.6 kB / 0.956 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3097, allocations: 0 / 0.956 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004116/0.3101, allocations: 256.8 kB / 0.9562 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.099e-05/0.3102, allocations: 67.39 kB / 0.9563 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.3102, allocations: 0 / 0.9563 GB, free: 2.453 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3102, allocations: 4 kB / 0.9563 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.036e-05/0.3103, allocations: 8.578 kB / 0.9563 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.3103, allocations: 4 kB / 0.9563 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003151/0.3106, allocations: 51.94 kB / 0.9563 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.13e-05/0.3106, allocations: 16.23 kB / 0.9563 GB, free: 2.371 MB / 0.7325 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 0.0001019/0.3107, allocations: 131.6 kB / 0.9565 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.373e-05/0.3108, allocations: 11.84 kB / 0.9565 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.3108, allocations: 12.38 kB / 0.9565 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3108, allocations: 0 / 0.9565 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3108, allocations: 0 / 0.9565 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-06/0.3108, allocations: 4 kB / 0.9565 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.311, allocations: 177.6 kB / 0.9567 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.311, allocations: 0 / 0.9567 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.185e-06/0.311, allocations: 4 kB / 0.9567 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.311, allocations: 0 / 0.9567 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.311, allocations: 8.062 kB / 0.9567 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.311, allocations: 0 / 0.9567 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.311, allocations: 8 kB / 0.9567 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.3112, allocations: 112.9 kB / 0.9568 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.573e-05/0.3112, allocations: 81.11 kB / 0.9569 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.3112, allocations: 7.984 kB / 0.9569 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.969e-05/0.3113, allocations: 0 / 0.9569 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.719e-05/0.3113, allocations: 4 kB / 0.9569 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.3113, allocations: 7.984 kB / 0.9569 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.426e-05/0.3114, allocations: 87.28 kB / 0.957 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3114, allocations: 4 kB / 0.957 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002312/0.3116, allocations: 31.91 kB / 0.957 GB, free: 1.598 MB / 0.7325 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.000166/0.3118, allocations: 103.2 kB / 0.9571 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003402/0.3121, allocations: 250.6 kB / 0.9573 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3121, allocations: 0 / 0.9573 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.796e-05/0.3122, allocations: 31.92 kB / 0.9574 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.3124, allocations: 20.22 kB / 0.9574 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003319/0.3128, allocations: 159.1 kB / 0.9575 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.313, allocations: 0.6883 MB / 0.9582 GB, free: 272 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.464e-05/0.3131, allocations: 4 kB / 0.9582 GB, free: 268 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.171e-05/0.3131, allocations: 19.36 kB / 0.9582 GB, free: 248 kB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.3131, allocations: 0 / 0.9582 GB, free: 248 kB / 0.7325 GB Notification: Performance of Templates: time 0.005165/0.3183, allocations: 1.84 MB / 0.96 GB, free: 14.43 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Nor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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