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.001321/0.001321, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.00145/0.00145, 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.456/1.456, 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.3-maint.9.1.x/package.mo): time 2.285/2.285, allocations: 390.3 MB / 0.6655 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 63.91 kB / 0.9516 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8507/0.8522, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.002026/0.8543, allocations: 0.7122 MB / 1.089 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00116/0.8555, allocations: 0.8299 MB / 1.09 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.379e-05/0.8555, allocations: 1.25 kB / 1.09 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.28e-05/0.8556, allocations: 4.453 kB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.889e-05/0.8556, allocations: 4.641 kB / 1.09 GB, free: 4.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001766/0.8558, allocations: 16.09 kB / 1.09 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.879e-05/0.8559, allocations: 46.97 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.8561, allocations: 17.03 kB / 1.09 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.12e-05/0.8561, allocations: 16.72 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.748e-05/0.8562, allocations: 18.8 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.8562, allocations: 4.25 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.444e-05/0.8562, allocations: 4.469 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.44e-05/0.8563, allocations: 18.83 kB / 1.09 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.559e-05/0.8563, allocations: 13.64 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.8564, allocations: 49.88 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.8564, allocations: 0.8438 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8564, allocations: 0 / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.8565, allocations: 0 / 1.09 GB, free: 4.328 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.0006242/0.8571, allocations: 381.8 kB / 1.091 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.8571, allocations: 9.406 kB / 1.091 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.093e-05/0.8572, allocations: 6.781 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.934e-05/0.8573, allocations: 171.3 kB / 1.091 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.8573, allocations: 5.438 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.8573, allocations: 2.531 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.8575, allocations: 66.69 kB / 1.091 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.8575, allocations: 4.125 kB / 1.091 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.8575, allocations: 3.938 kB / 1.091 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.8575, allocations: 1.219 kB / 1.091 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/0.8577, allocations: 51.3 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000518/0.8583, allocations: 292.7 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/0.8586, allocations: 60.88 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.8587, allocations: 25.38 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.8587, allocations: 0.7812 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.8587, allocations: 31.97 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.8587, allocations: 0 / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003939/0.8591, allocations: 91.19 kB / 1.091 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.8592, allocations: 57.02 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.154e-05/0.8593, allocations: 109.9 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.8593, allocations: 34.67 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.486e-05/0.8593, allocations: 95.48 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.8593, allocations: 5.641 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.432e-05/0.8594, allocations: 18.55 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.226e-05/0.8594, allocations: 317.5 kB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.808e-05/0.8595, allocations: 24.88 kB / 1.092 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.996e-05/0.8596, allocations: 31.08 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.8598, allocations: 46.83 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.8598, allocations: 1.219 kB / 1.092 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002156/0.86, allocations: 74.89 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.8601, allocations: 8.656 kB / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.8601, allocations: 0 / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.8601, allocations: 1.891 kB / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.005e-05/0.8602, allocations: 12.64 kB / 1.092 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.8602, allocations: 0.7188 kB / 1.092 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.8603, allocations: 19.42 kB / 1.092 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.8603, allocations: 0.6094 kB / 1.092 GB, free: 2.539 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.399e-05/0.8604, allocations: 121.4 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.57e-05/0.8604, allocations: 2.094 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002612/0.8607, allocations: 78.36 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.8607, allocations: 1.156 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.8607, allocations: 0 / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.8607, allocations: 1.75 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001528/0.8609, allocations: 174.4 kB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.8609, allocations: 0 / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.543e-05/0.861, allocations: 17.12 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.861, allocations: 1.031 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.861, allocations: 0.7969 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.861, allocations: 1.125 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.861, allocations: 0 / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/0.8613, allocations: 171.2 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.476e-05/0.8613, allocations: 83.95 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.8613, allocations: 5.062 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.8615, allocations: 14.55 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.8615, allocations: 6.172 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.8615, allocations: 1.094 kB / 1.093 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.712e-05/0.8616, allocations: 89.64 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.082e-06/0.8616, allocations: 0.7812 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002268/0.8618, allocations: 13.88 kB / 1.093 GB, free: 1.824 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.0001404/0.862, allocations: 103 kB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002875/0.8623, allocations: 46.75 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.8623, allocations: 0 / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.8624, allocations: 27.98 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.8628, allocations: 15.69 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003255/0.8631, allocations: 163.2 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.8633, allocations: 0.6854 MB / 1.094 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.302e-05/0.8633, allocations: 9.594 kB / 1.094 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.8633, allocations: 0.6875 kB / 1.094 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of Templates: time 0.002636/0.866, allocations: 0.7848 MB / 1.095 GB, free: 0.7891 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