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.0008642/0.0008639, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.007766/0.007766, allocations: 174.1 kB / 16.26 MB, free: 6.336 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.44/1.44, allocations: 223.3 MB / 240.3 MB, free: 5.355 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.48/2.48, allocations: 390.9 MB / 0.6663 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003748/0.0003748, allocations: 12 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8888/0.8892, allocations: 142.4 MB / 0.955 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.0009974/0.8903, allocations: 486.9 kB / 0.9555 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001592/0.8919, allocations: 1.15 MB / 0.9566 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.575e-05/0.892, allocations: 5.094 kB / 0.9566 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.342e-05/0.892, allocations: 3.938 kB / 0.9566 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.687e-05/0.8921, allocations: 9.234 kB / 0.9567 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005497/0.8927, allocations: 123 kB / 0.9568 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001473/0.8928, allocations: 98.72 kB / 0.9569 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.8929, allocations: 14.44 kB / 0.9569 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.8931, allocations: 43.17 kB / 0.9569 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.036e-05/0.8932, allocations: 37.17 kB / 0.957 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.127e-05/0.8932, allocations: 6.156 kB / 0.957 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.241e-05/0.8933, allocations: 19.2 kB / 0.957 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.588e-05/0.8933, allocations: 14.75 kB / 0.957 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.991e-05/0.8934, allocations: 57.91 kB / 0.957 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.8936, allocations: 104.7 kB / 0.9571 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.8936, allocations: 0 / 0.9571 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.776e-06/0.8936, allocations: 0 / 0.9571 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.8936, allocations: 5.125 kB / 0.9572 GB, free: 6.184 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.0006328/0.8943, allocations: 401.4 kB / 0.9575 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.8943, allocations: 10.09 kB / 0.9575 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.213e-05/0.8944, allocations: 10.25 kB / 0.9576 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.8945, allocations: 171.3 kB / 0.9577 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.8946, allocations: 11.45 kB / 0.9577 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.471e-05/0.8946, allocations: 7.125 kB / 0.9577 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.8948, allocations: 72.94 kB / 0.9578 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.8948, allocations: 192 / 0.9578 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.8949, allocations: 5.188 kB / 0.9578 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.8949, allocations: 5.391 kB / 0.9578 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.8951, allocations: 56.53 kB / 0.9579 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004847/0.8956, allocations: 323.4 kB / 0.9582 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.8958, allocations: 71.11 kB / 0.9582 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.8959, allocations: 43.55 kB / 0.9583 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.8959, allocations: 4 kB / 0.9583 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002447/0.8962, allocations: 96.47 kB / 0.9584 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/0.8962, allocations: 0 / 0.9584 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004575/0.8966, allocations: 162.6 kB / 0.9585 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.316e-05/0.8967, allocations: 53.19 kB / 0.9586 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.797e-05/0.8967, allocations: 116.2 kB / 0.9587 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.8968, allocations: 31.52 kB / 0.9587 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.789e-05/0.8968, allocations: 95.91 kB / 0.9588 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.8969, allocations: 24.16 kB / 0.9588 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.206e-05/0.8969, allocations: 22.11 kB / 0.9589 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.414e-05/0.897, allocations: 317.5 kB / 0.9592 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.8972, allocations: 60.45 kB / 0.9592 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.8974, allocations: 97.31 kB / 0.9593 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002835/0.8976, allocations: 154.2 kB / 0.9595 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.8977, allocations: 0 / 0.9595 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004883/0.8981, allocations: 219.4 kB / 0.9597 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.477e-05/0.8982, allocations: 38.11 kB / 0.9597 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.8982, allocations: 5.359 kB / 0.9597 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.8982, allocations: 1.375 kB / 0.9597 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.919e-05/0.8984, allocations: 11 kB / 0.9597 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.8984, allocations: 1.375 kB / 0.9597 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.8986, allocations: 59.11 kB / 0.9598 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.8987, allocations: 9.484 kB / 0.9598 GB, free: 3.805 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 9.737e-05/0.8988, allocations: 124.6 kB / 0.9599 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.961e-05/0.8988, allocations: 8.031 kB / 0.9599 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.999e-05/0.8988, allocations: 13.73 kB / 0.9599 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.8988, allocations: 1.375 kB / 0.9599 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.8988, allocations: 4 kB / 0.9599 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.8989, allocations: 3.938 kB / 0.9599 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004298/0.8993, allocations: 386.2 kB / 0.9603 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.8993, allocations: 0 / 0.9603 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.718e-05/0.8994, allocations: 19.23 kB / 0.9603 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.8994, allocations: 1.125 kB / 0.9603 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.8994, allocations: 0.9062 kB / 0.9603 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.8994, allocations: 1.359 kB / 0.9603 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.8994, allocations: 0 / 0.9603 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.8997, allocations: 222.7 kB / 0.9605 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.76e-05/0.8997, allocations: 87.48 kB / 0.9606 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.8998, allocations: 9.016 kB / 0.9606 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.308e-05/0.8999, allocations: 6.844 kB / 0.9606 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.8999, allocations: 6.734 kB / 0.9606 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-06/0.8999, allocations: 10.69 kB / 0.9607 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.063e-05/0.9, allocations: 94.67 kB / 0.9608 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9, allocations: 1.219 kB / 0.9608 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002947/0.9003, allocations: 24.47 kB / 0.9608 GB, free: 2.895 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.0001627/0.9005, allocations: 104.1 kB / 0.9609 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004086/0.9009, allocations: 185.3 kB / 0.9611 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.9009, allocations: 1.031 kB / 0.9611 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.901, allocations: 48.36 kB / 0.9611 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.9013, allocations: 14.23 kB / 0.9611 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000379/0.9017, allocations: 182.5 kB / 0.9613 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.9019, allocations: 0.6925 MB / 0.962 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.293e-05/0.9019, allocations: 12.33 kB / 0.962 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.419e-05/0.902, allocations: 14.53 kB / 0.962 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.902, allocations: 0 / 0.962 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of Templates: time 0.004542/0.9065, allocations: 1.325 MB / 0.9633 GB, free: 1.102 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