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.00111/0.00111, allocations: 103.2 kB / 16.35 MB, free: 5.828 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.001108/0.001108, allocations: 189.4 kB / 17.29 MB, free: 5.484 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.17 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.221/2.221, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 66.94 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3152, allocations: 140.4 MB / 0.9511 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Nor): time 0.002074/0.3173, allocations: 0.6629 MB / 0.9518 GB, free: 7.41 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.3189, allocations: 1.196 MB / 0.9529 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.532e-05/0.3189, allocations: 0 / 0.9529 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.031e-05/0.319, allocations: 7.938 kB / 0.9529 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.764e-05/0.3191, allocations: 7.938 kB / 0.953 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006315/0.3197, allocations: 222.9 kB / 0.9532 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000246/0.32, allocations: 183.6 kB / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.3201, allocations: 20 kB / 0.9534 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.3202, allocations: 63.95 kB / 0.9534 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.3203, allocations: 67.77 kB / 0.9535 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.206e-05/0.3204, allocations: 12 kB / 0.9535 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.193e-05/0.3205, allocations: 31.98 kB / 0.9535 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.883e-05/0.3205, allocations: 4 kB / 0.9535 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.861e-05/0.3206, allocations: 59.81 kB / 0.9536 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.3208, allocations: 147.7 kB / 0.9537 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3208, allocations: 0 / 0.9537 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.144e-06/0.3208, allocations: 0 / 0.9537 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.3208, allocations: 0 / 0.9537 GB, free: 5.395 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.0005762/0.3214, allocations: 446.6 kB / 0.9542 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3215, allocations: 8.031 kB / 0.9542 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.163e-05/0.3215, allocations: 20.72 kB / 0.9542 GB, free: 4.867 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.3217, allocations: 164.4 kB / 0.9543 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.3217, allocations: 8.359 kB / 0.9543 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.3217, allocations: 8.375 kB / 0.9544 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.3218, allocations: 46.25 kB / 0.9544 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.3219, allocations: 192 / 0.9544 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.3219, allocations: 3.938 kB / 0.9544 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.3219, allocations: 8 kB / 0.9544 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.339e-05/0.3219, allocations: 15.98 kB / 0.9544 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005095/0.3224, allocations: 352.6 kB / 0.9548 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.057e-05/0.3225, allocations: 42.5 kB / 0.9548 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.956e-05/0.3226, allocations: 16.94 kB / 0.9548 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.093e-05/0.3226, allocations: 0 / 0.9548 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/0.3227, allocations: 83.31 kB / 0.9549 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.3227, allocations: 0 / 0.9549 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0002464/0.323, allocations: 105.6 kB / 0.955 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.323, allocations: 51.41 kB / 0.955 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.74e-05/0.3231, allocations: 125.8 kB / 0.9552 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.3232, allocations: 29.7 kB / 0.9552 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.933e-05/0.3233, allocations: 88.14 kB / 0.9553 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.3233, allocations: 15.81 kB / 0.9553 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-05/0.3234, allocations: 49.69 kB / 0.9553 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3235, allocations: 326.8 kB / 0.9557 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.3236, allocations: 55.91 kB / 0.9557 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.3238, allocations: 96.25 kB / 0.9558 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.324, allocations: 163.6 kB / 0.956 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.324, allocations: 0 / 0.956 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004148/0.3244, allocations: 264.8 kB / 0.9562 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.276e-05/0.3245, allocations: 67.39 kB / 0.9563 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3245, allocations: 0 / 0.9563 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.3245, allocations: 8.125 kB / 0.9563 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.33e-05/0.3245, allocations: 3.984 kB / 0.9563 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3246, allocations: 7.938 kB / 0.9563 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00035/0.3249, allocations: 47.94 kB / 0.9563 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.325, allocations: 16.45 kB / 0.9564 GB, free: 2.398 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 9.627e-05/0.3251, allocations: 133.7 kB / 0.9565 GB, free: 2.258 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.3251, allocations: 7.906 kB / 0.9565 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.403e-05/0.3251, allocations: 4.375 kB / 0.9565 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.3251, allocations: 0 / 0.9565 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.3251, allocations: 3.938 kB / 0.9565 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3251, allocations: 4 kB / 0.9565 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.3253, allocations: 177.6 kB / 0.9567 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3253, allocations: 0 / 0.9567 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.155e-06/0.3253, allocations: 4 kB / 0.9567 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3253, allocations: 0 / 0.9567 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.3253, allocations: 0 / 0.9567 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3253, allocations: 4 kB / 0.9567 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3253, allocations: 4 kB / 0.9567 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.3255, allocations: 112.9 kB / 0.9568 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.3255, allocations: 81.11 kB / 0.9569 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.3255, allocations: 3.984 kB / 0.9569 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.917e-05/0.3256, allocations: 0 / 0.9569 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.3256, allocations: 8 kB / 0.9569 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.3256, allocations: 7.984 kB / 0.9569 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.936e-05/0.3257, allocations: 91.28 kB / 0.957 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3257, allocations: 0 / 0.957 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002284/0.3259, allocations: 27.91 kB / 0.957 GB, free: 1.641 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.0001518/0.3261, allocations: 111.2 kB / 0.9571 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003551/0.3264, allocations: 247 kB / 0.9573 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3264, allocations: 0 / 0.9573 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.91e-05/0.3265, allocations: 32.17 kB / 0.9574 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.3267, allocations: 24.31 kB / 0.9574 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003192/0.327, allocations: 150.8 kB / 0.9575 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.3273, allocations: 0.6883 MB / 0.9582 GB, free: 316 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.291e-05/0.3273, allocations: 4 kB / 0.9582 GB, free: 312 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.624e-05/0.3274, allocations: 19.7 kB / 0.9582 GB, free: 292 kB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.3274, allocations: 4 kB / 0.9582 GB, free: 288 kB / 0.7325 GB Notification: Performance of Templates: time 0.004722/0.3321, allocations: 1.841 MB / 0.96 GB, free: 14.46 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 gbode -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