Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.01048/0.01048, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.002239/0.00224, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.562/1.562, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.779/2.779, allocations: 437 MB / 0.7105 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 63.89 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.138/1.139, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.002515/1.142, allocations: 0.7159 MB / 1.167 GB, free: 3.121 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001527/1.143, allocations: 0.8336 MB / 1.168 GB, free: 2.277 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.511e-05/1.144, allocations: 4 kB / 1.168 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.102e-05/1.144, allocations: 3.938 kB / 1.168 GB, free: 2.27 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.584e-05/1.144, allocations: 3.938 kB / 1.168 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002273/1.144, allocations: 19.97 kB / 1.168 GB, free: 2.246 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000118/1.144, allocations: 47.84 kB / 1.168 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/1.144, allocations: 16 kB / 1.168 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.489e-05/1.144, allocations: 15.92 kB / 1.168 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.213e-05/1.144, allocations: 23.86 kB / 1.168 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.403e-05/1.144, allocations: 4 kB / 1.168 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.153e-05/1.144, allocations: 4 kB / 1.168 GB, free: 2.137 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.653e-05/1.145, allocations: 15.97 kB / 1.168 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.955e-05/1.145, allocations: 19.86 kB / 1.168 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001328/1.145, allocations: 39.88 kB / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/1.145, allocations: 0 / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.184e-06/1.145, allocations: 0 / 1.168 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.963e-06/1.145, allocations: 0 / 1.168 GB, free: 2.062 MB / 0.8887 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.000712/1.145, allocations: 387.8 kB / 1.169 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/1.146, allocations: 8.922 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.517e-05/1.146, allocations: 8.938 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/1.146, allocations: 176.3 kB / 1.169 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/1.146, allocations: 4.375 kB / 1.169 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/1.146, allocations: 4.359 kB / 1.169 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/1.146, allocations: 62.17 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/1.146, allocations: 4.188 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/1.146, allocations: 3.938 kB / 1.169 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/1.146, allocations: 0 / 1.169 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001886/1.146, allocations: 47.95 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005406/1.147, allocations: 300.6 kB / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/1.147, allocations: 58.48 kB / 1.169 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.434e-05/1.147, allocations: 25 kB / 1.169 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/1.147, allocations: 3.984 kB / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/1.147, allocations: 38.55 kB / 1.169 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/1.147, allocations: 0 / 1.169 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0003658/1.148, allocations: 93.58 kB / 1.17 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/1.148, allocations: 55.41 kB / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.178e-05/1.148, allocations: 121.7 kB / 1.17 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/1.148, allocations: 25.7 kB / 1.17 GB, free: 480 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 5.505e-05/1.148, allocations: 92.12 kB / 1.17 GB, free: 384 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.691e-05/1.148, allocations: 3.953 kB / 1.17 GB, free: 380 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/1.148, allocations: 17.72 kB / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002597/1.148, allocations: 314.8 kB / 1.17 GB, free: 32 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.605e-05/1.148, allocations: 27.97 kB / 1.17 GB, free: 4 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/1.148, allocations: 19.98 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/1.149, allocations: 48.81 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/1.149, allocations: 0 / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002074/1.149, allocations: 81.55 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/1.149, allocations: 12 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/1.149, allocations: 0 / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/1.149, allocations: 0 / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.069e-05/1.149, allocations: 11.98 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/1.149, allocations: 0 / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/1.149, allocations: 11.98 kB / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/1.149, allocations: 0 / 1.17 GB, free: 15.81 MB / 0.9044 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 8.845e-05/1.149, allocations: 121.8 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.636e-05/1.149, allocations: 4 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002537/1.15, allocations: 81.48 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/1.15, allocations: 0 / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/1.15, allocations: 0 / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/1.15, allocations: 3.984 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001989/1.15, allocations: 173.5 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/1.15, allocations: 0 / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.153e-05/1.15, allocations: 11.98 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/1.15, allocations: 7.938 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/1.15, allocations: 0 / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/1.15, allocations: 0 / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/1.15, allocations: 0 / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/1.15, allocations: 171.5 kB / 1.171 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.161e-05/1.15, allocations: 85.8 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/1.15, allocations: 7.984 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/1.15, allocations: 15.98 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/1.15, allocations: 3.984 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/1.15, allocations: 7.938 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.489e-05/1.151, allocations: 87.28 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/1.151, allocations: 0 / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002197/1.151, allocations: 11.94 kB / 1.171 GB, free: 14.93 MB / 0.9044 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.0001569/1.151, allocations: 111.2 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003048/1.151, allocations: 47.95 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/1.151, allocations: 0 / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/1.151, allocations: 23.92 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/1.152, allocations: 7.938 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003452/1.152, allocations: 139.5 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/1.152, allocations: 0.6807 MB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.354e-05/1.152, allocations: 0 / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/1.152, allocations: 11.44 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of SimCode: time 3.41e-07/1.152, allocations: 0 / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of Templates: time 0.003359/1.156, allocations: 0.8231 MB / 1.173 GB, free: 13.04 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches