Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change.u|change.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change.u|change.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001988/0.001988, allocations: 192.3 kB / 16.14 MB, free: 6.711 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.526/1.526, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.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.415/2.415, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.91 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7904/0.7916, allocations: 140.4 MB / 0.9489 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.001915/0.7936, allocations: 0.8148 MB / 0.9497 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.7951, allocations: 1.153 MB / 0.9509 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.178e-05/0.7951, allocations: 0 / 0.9509 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.409e-05/0.7952, allocations: 3.938 kB / 0.9509 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.036e-05/0.7953, allocations: 9.297 kB / 0.9509 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.7957, allocations: 127.1 kB / 0.951 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000115/0.7959, allocations: 102.3 kB / 0.9511 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.796, allocations: 15.12 kB / 0.9511 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.938e-05/0.7961, allocations: 43.7 kB / 0.9511 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.456e-05/0.7961, allocations: 38.55 kB / 0.9512 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.373e-05/0.7962, allocations: 5.562 kB / 0.9512 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.345e-05/0.7963, allocations: 20.64 kB / 0.9512 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.552e-05/0.7963, allocations: 10.77 kB / 0.9512 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.266e-05/0.7964, allocations: 36 kB / 0.9512 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000179/0.7965, allocations: 112 kB / 0.9514 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.7966, allocations: 1.312 kB / 0.9514 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7966, allocations: 4 kB / 0.9514 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.7966, allocations: 0 / 0.9514 GB, free: 7.336 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.0005513/0.7971, allocations: 406.8 kB / 0.9517 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.7972, allocations: 10.56 kB / 0.9518 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.495e-05/0.7972, allocations: 9.938 kB / 0.9518 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.708e-05/0.7973, allocations: 178.6 kB / 0.9519 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.7973, allocations: 8 kB / 0.9519 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/0.7974, allocations: 8.062 kB / 0.952 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.7976, allocations: 66.97 kB / 0.952 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.7976, allocations: 192 / 0.952 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.7976, allocations: 9.422 kB / 0.952 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.7976, allocations: 5.656 kB / 0.952 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.7978, allocations: 42.7 kB / 0.9521 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004309/0.7982, allocations: 323 kB / 0.9524 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.7984, allocations: 62.89 kB / 0.9524 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.7986, allocations: 36.67 kB / 0.9525 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.7986, allocations: 1.188 kB / 0.9525 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.7988, allocations: 96.06 kB / 0.9526 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.373e-06/0.7988, allocations: 0 / 0.9526 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004339/0.7993, allocations: 139.3 kB / 0.9527 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.7993, allocations: 56.81 kB / 0.9528 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.744e-05/0.7994, allocations: 119.6 kB / 0.9529 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.7994, allocations: 38.36 kB / 0.9529 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.645e-05/0.7995, allocations: 91.11 kB / 0.953 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.7995, allocations: 18.94 kB / 0.953 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.09e-05/0.7996, allocations: 40.56 kB / 0.953 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.803e-05/0.7996, allocations: 316.9 kB / 0.9534 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.7998, allocations: 54.95 kB / 0.9534 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.8, allocations: 88.69 kB / 0.9535 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.8003, allocations: 144.8 kB / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.8003, allocations: 0 / 0.9536 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005521/0.8008, allocations: 214.2 kB / 0.9538 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/0.8009, allocations: 32.52 kB / 0.9539 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.8009, allocations: 5.516 kB / 0.9539 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.8009, allocations: 5.391 kB / 0.9539 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.615e-05/0.801, allocations: 8.688 kB / 0.9539 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.801, allocations: 8.984 kB / 0.9539 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.8013, allocations: 32.72 kB / 0.9539 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.8013, allocations: 10.33 kB / 0.9539 GB, free: 4.957 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,change.y,change.u,$PRE.change.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 7.846e-05/0.8014, allocations: 125.5 kB / 0.954 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.8014, allocations: 6.188 kB / 0.9541 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.993e-05/0.8014, allocations: 9.469 kB / 0.9541 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.8014, allocations: 5.125 kB / 0.9541 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.8014, allocations: 1.062 kB / 0.9541 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.8015, allocations: 3.984 kB / 0.9541 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003911/0.8018, allocations: 367.5 kB / 0.9544 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.8019, allocations: 5.25 kB / 0.9544 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.545e-05/0.8019, allocations: 17.02 kB / 0.9544 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.8019, allocations: 5.312 kB / 0.9545 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.8019, allocations: 4 kB / 0.9545 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.802, allocations: 1.625 kB / 0.9545 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.802, allocations: 3.938 kB / 0.9545 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/0.8022, allocations: 204.7 kB / 0.9547 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.639e-05/0.8023, allocations: 87.33 kB / 0.9547 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.8023, allocations: 9.078 kB / 0.9547 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.681e-05/0.8024, allocations: 7.344 kB / 0.9548 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.8024, allocations: 7.422 kB / 0.9548 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.8025, allocations: 6.25 kB / 0.9548 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.88e-05/0.8025, allocations: 96.62 kB / 0.9549 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8025, allocations: 0 / 0.9549 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002632/0.8028, allocations: 24.25 kB / 0.9549 GB, free: 4.051 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: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0001735/0.803, allocations: 107.7 kB / 0.955 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004233/0.8034, allocations: 180.1 kB / 0.9552 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.8034, allocations: 0 / 0.9552 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.8035, allocations: 36.3 kB / 0.9552 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.8038, allocations: 13.83 kB / 0.9552 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004053/0.8042, allocations: 180.6 kB / 0.9554 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.8044, allocations: 0.6922 MB / 0.9561 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.697e-05/0.8045, allocations: 7.688 kB / 0.9561 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.922e-05/0.8045, allocations: 11.34 kB / 0.9561 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.8045, allocations: 0 / 0.9561 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of Templates: time 0.005034/0.8095, allocations: 1.339 MB / 0.9574 GB, free: 2.25 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches