Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOffController.reference|onOffController.u|onOffController.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onOffController.reference|onOffController.u|onOffController.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001494/0.001494, allocations: 187 kB / 17.34 MB, free: 5.762 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.481/1.481, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.235/2.235, allocations: 390.2 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 63.91 kB / 0.9516 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9488/0.9503, allocations: 140.4 MB / 1.089 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.002503/0.9528, allocations: 0.7077 MB / 1.089 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.954, allocations: 0.8415 MB / 1.09 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.146e-05/0.954, allocations: 1.125 kB / 1.09 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.111e-05/0.9541, allocations: 4.547 kB / 1.09 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.273e-05/0.9542, allocations: 5.281 kB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000193/0.9544, allocations: 15.92 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.818e-05/0.9545, allocations: 42.62 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.9546, allocations: 17.25 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.496e-05/0.9547, allocations: 20.94 kB / 1.09 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.243e-05/0.9548, allocations: 22.36 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.827e-05/0.9548, allocations: 4.406 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.25e-05/0.9548, allocations: 3.438 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.094e-05/0.9548, allocations: 11.31 kB / 1.09 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.158e-05/0.9549, allocations: 14.89 kB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.955, allocations: 53.14 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.902e-06/0.955, allocations: 1.219 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.613e-06/0.955, allocations: 0 / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.955, allocations: 0 / 1.09 GB, free: 4.305 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006407/0.9557, allocations: 381.3 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.9557, allocations: 9.688 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.784e-05/0.9558, allocations: 7.641 kB / 1.091 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.053e-05/0.9559, allocations: 169.5 kB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.9559, allocations: 6.25 kB / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.631e-05/0.9559, allocations: 6.406 kB / 1.091 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002092/0.9561, allocations: 62.44 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.465e-06/0.9561, allocations: 192 / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.9562, allocations: 5.062 kB / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.9562, allocations: 0 / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.9564, allocations: 44.14 kB / 1.091 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004998/0.9569, allocations: 309.1 kB / 1.091 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.9571, allocations: 47.98 kB / 1.091 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.769e-05/0.9573, allocations: 29.3 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.9573, allocations: 1.672 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.655e-05/0.9573, allocations: 35.31 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.9573, allocations: 0 / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003802/0.9577, allocations: 91.89 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.127e-05/0.9577, allocations: 51.41 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.976e-05/0.9578, allocations: 122.2 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.9578, allocations: 27.52 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.916e-05/0.9578, allocations: 95.31 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.9579, allocations: 5.828 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-05/0.9579, allocations: 18.33 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.747e-05/0.958, allocations: 318 kB / 1.092 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.755e-05/0.9581, allocations: 20.73 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.487e-05/0.9582, allocations: 29.92 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.9583, allocations: 48.61 kB / 1.092 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.9583, allocations: 0 / 1.092 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002086/0.9585, allocations: 78.56 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.9586, allocations: 7.828 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.9586, allocations: 0 / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.9586, allocations: 5.219 kB / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.956e-05/0.9587, allocations: 8.844 kB / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.9587, allocations: 1.797 kB / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.9588, allocations: 18.28 kB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.9588, allocations: 1.5 kB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (onOffController.y,$PRE.onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 6.337e-05/0.9589, allocations: 116.5 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.724e-05/0.9589, allocations: 2.703 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002594/0.9592, allocations: 89.64 kB / 1.093 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.9592, allocations: 1.125 kB / 1.093 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.9592, allocations: 4.609 kB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.9592, allocations: 0 / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.9594, allocations: 166.9 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.9594, allocations: 0.5156 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.033e-05/0.9594, allocations: 9.547 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.9594, allocations: 1.062 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.9595, allocations: 4 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.9595, allocations: 1.625 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.9595, allocations: 0 / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002326/0.9597, allocations: 179.5 kB / 1.093 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.985e-05/0.9597, allocations: 79.31 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.9598, allocations: 1.516 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.9599, allocations: 18.56 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.96, allocations: 5.516 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.96, allocations: 6.453 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.485e-05/0.96, allocations: 93.61 kB / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.96, allocations: 0 / 1.093 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002225/0.9603, allocations: 5.844 kB / 1.093 GB, free: 1.801 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: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000136/0.9604, allocations: 103 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002882/0.9607, allocations: 51.7 kB / 1.093 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.9607, allocations: 0 / 1.093 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.937e-05/0.9608, allocations: 27.66 kB / 1.093 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.9611, allocations: 15.11 kB / 1.093 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003548/0.9615, allocations: 159.1 kB / 1.093 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.9616, allocations: 0.6847 MB / 1.094 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/0.9617, allocations: 10.83 kB / 1.094 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.9617, allocations: 0.8438 kB / 1.094 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of Templates: time 0.002704/0.9644, allocations: 0.7732 MB / 1.095 GB, free: 0.7773 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches