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.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.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.0008801/0.00088, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001125/0.001124, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 223.3 MB / 240 MB, free: 5.441 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.701/2.701, allocations: 390.9 MB / 0.666 GB, free: 2.465 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003992/0.0003993, allocations: 11.98 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8926/0.893, allocations: 142.4 MB / 0.9545 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.001006/0.8941, allocations: 436.1 kB / 0.9549 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009626/0.8951, allocations: 0.826 MB / 0.9557 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.966e-05/0.8952, allocations: 5.031 kB / 0.9557 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.742e-05/0.8952, allocations: 3.938 kB / 0.9557 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.901e-05/0.8953, allocations: 0.8125 kB / 0.9557 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.8954, allocations: 19.06 kB / 0.9557 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000102/0.8955, allocations: 38.19 kB / 0.9557 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.8957, allocations: 9.594 kB / 0.9557 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.959e-05/0.8957, allocations: 13.17 kB / 0.9558 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.045e-05/0.8958, allocations: 20.8 kB / 0.9558 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.8958, allocations: 1.812 kB / 0.9558 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.31e-05/0.8958, allocations: 2.188 kB / 0.9558 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.733e-05/0.8959, allocations: 9.297 kB / 0.9558 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.678e-05/0.8959, allocations: 32.27 kB / 0.9558 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.939e-05/0.896, allocations: 28.92 kB / 0.9558 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.896, allocations: 1.531 kB / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.114e-06/0.896, allocations: 0 / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.896, allocations: 0 / 0.9559 GB, free: 6.559 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005591/0.8966, allocations: 391.8 kB / 0.9562 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.8966, allocations: 12.25 kB / 0.9562 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.155e-05/0.8967, allocations: 10.27 kB / 0.9562 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.15e-05/0.8968, allocations: 162.4 kB / 0.9564 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.8968, allocations: 0.9062 kB / 0.9564 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.8968, allocations: 6.438 kB / 0.9564 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.897, allocations: 67.41 kB / 0.9565 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.897, allocations: 1.406 kB / 0.9565 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.8971, allocations: 4 kB / 0.9565 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.8971, allocations: 1.438 kB / 0.9565 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.8973, allocations: 61.31 kB / 0.9565 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005314/0.8978, allocations: 305 kB / 0.9568 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002416/0.8981, allocations: 64.08 kB / 0.9569 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.679e-05/0.8982, allocations: 29.69 kB / 0.9569 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.8982, allocations: 1.188 kB / 0.9569 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.8982, allocations: 38.5 kB / 0.957 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.8982, allocations: 1.188 kB / 0.957 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003596/0.8986, allocations: 107.4 kB / 0.9571 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.8986, allocations: 56.41 kB / 0.9571 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.805e-05/0.8987, allocations: 112.9 kB / 0.9572 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.8987, allocations: 31.2 kB / 0.9573 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.877e-05/0.8988, allocations: 97.86 kB / 0.9573 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.8988, allocations: 13.27 kB / 0.9574 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.8988, allocations: 0 / 0.9574 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.399e-05/0.8989, allocations: 311.8 kB / 0.9577 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.085e-05/0.899, allocations: 28.62 kB / 0.9577 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.953e-05/0.8991, allocations: 28.8 kB / 0.9577 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.398e-05/0.8991, allocations: 23.11 kB / 0.9577 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.8992, allocations: 1.469 kB / 0.9577 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002304/0.8994, allocations: 87.28 kB / 0.9578 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.8994, allocations: 8.766 kB / 0.9578 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.8994, allocations: 0 / 0.9578 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.8994, allocations: 1.281 kB / 0.9578 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.992e-05/0.8995, allocations: 16.45 kB / 0.9578 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.8995, allocations: 5.156 kB / 0.9578 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.8996, allocations: 29.38 kB / 0.9579 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-06/0.8997, allocations: 5.438 kB / 0.9579 GB, free: 4.637 MB / 0.7169 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 ($PRE.onOffController.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.839e-05/0.8997, allocations: 108.3 kB / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.507e-05/0.8998, allocations: 1.562 kB / 0.958 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002421/0.9, allocations: 100.4 kB / 0.9581 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.9, allocations: 0 / 0.9581 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.9, allocations: 1 kB / 0.9581 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.9, allocations: 0 / 0.9581 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.9002, allocations: 165.2 kB / 0.9582 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.9002, allocations: 1.094 kB / 0.9582 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.874e-05/0.9003, allocations: 12.08 kB / 0.9583 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.9003, allocations: 7.938 kB / 0.9583 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.9003, allocations: 1.188 kB / 0.9583 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.9003, allocations: 7.891 kB / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.9003, allocations: 1.188 kB / 0.9583 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002263/0.9005, allocations: 184.2 kB / 0.9584 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.881e-05/0.9006, allocations: 78.52 kB / 0.9585 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.9006, allocations: 0 / 0.9585 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.9007, allocations: 18.33 kB / 0.9585 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.931e-05/0.9008, allocations: 15.97 kB / 0.9586 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.9008, allocations: 3.984 kB / 0.9586 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.482e-05/0.9008, allocations: 95.12 kB / 0.9586 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9008, allocations: 0 / 0.9586 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002162/0.9011, allocations: 5.656 kB / 0.9587 GB, free: 3.867 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001167/0.9012, allocations: 105.6 kB / 0.9588 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002326/0.9014, allocations: 64.58 kB / 0.9588 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.9014, allocations: 0 / 0.9588 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.9016, allocations: 31.19 kB / 0.9588 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.9019, allocations: 3.562 kB / 0.9588 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003029/0.9022, allocations: 135.1 kB / 0.959 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.9023, allocations: 0.6804 MB / 0.9596 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.507e-05/0.9024, allocations: 5.484 kB / 0.9596 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.825e-05/0.9024, allocations: 9.031 kB / 0.9597 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of SimCode: time 7.61e-07/0.9024, allocations: 0 / 0.9597 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of Templates: time 0.003315/0.9057, allocations: 0.6415 MB / 0.9603 GB, free: 2.551 MB / 0.7169 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/jenkins/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