Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001868/0.001868, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.457/1.457, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.465/2.465, allocations: 390.2 MB / 0.6646 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 63.89 kB / 0.8125 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8987/0.9006, allocations: 140.4 MB / 0.9496 GB, free: 9.023 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.002532/0.9032, allocations: 0.6468 MB / 0.9502 GB, free: 8.527 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001759/0.9049, allocations: 1.179 MB / 0.9514 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.047e-05/0.905, allocations: 1.5 kB / 0.9514 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.43e-05/0.9051, allocations: 3.938 kB / 0.9514 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.254e-05/0.9052, allocations: 8.953 kB / 0.9514 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006649/0.9059, allocations: 149.5 kB / 0.9515 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.9061, allocations: 137.4 kB / 0.9517 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.9062, allocations: 8.203 kB / 0.9517 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.9064, allocations: 58.72 kB / 0.9517 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.9065, allocations: 46 kB / 0.9518 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.9065, allocations: 10.66 kB / 0.9518 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.9066, allocations: 29.95 kB / 0.9518 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.952e-05/0.9067, allocations: 10.58 kB / 0.9518 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.155e-05/0.9068, allocations: 52.58 kB / 0.9519 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.907, allocations: 118.4 kB / 0.952 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.907, allocations: 0 / 0.952 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.313e-06/0.907, allocations: 0 / 0.952 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.907, allocations: 0 / 0.952 GB, free: 7.164 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006657/0.9077, allocations: 399.1 kB / 0.9524 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.9077, allocations: 9.5 kB / 0.9524 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.822e-05/0.9078, allocations: 13.16 kB / 0.9524 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.9079, allocations: 171.4 kB / 0.9526 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.908, allocations: 16.77 kB / 0.9526 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.908, allocations: 6 kB / 0.9526 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002374/0.9083, allocations: 73.08 kB / 0.9526 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.9083, allocations: 1.219 kB / 0.9526 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.9083, allocations: 3.938 kB / 0.9526 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.9083, allocations: 1.375 kB / 0.9527 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000167/0.9085, allocations: 36.06 kB / 0.9527 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004965/0.909, allocations: 325 kB / 0.953 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.9092, allocations: 69.92 kB / 0.9531 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.9093, allocations: 37.33 kB / 0.9531 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.9094, allocations: 0 / 0.9531 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003174/0.9097, allocations: 116.5 kB / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 2.395e-06/0.9097, allocations: 1.312 kB / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005971/0.9103, allocations: 175.5 kB / 0.9534 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.9104, allocations: 53.5 kB / 0.9534 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.931e-05/0.9105, allocations: 125.2 kB / 0.9535 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.9105, allocations: 27.77 kB / 0.9536 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.578e-05/0.9105, allocations: 87.36 kB / 0.9537 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/0.9106, allocations: 15 kB / 0.9537 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.719e-05/0.9107, allocations: 45.19 kB / 0.9537 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.946e-05/0.9107, allocations: 316.8 kB / 0.954 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.9109, allocations: 46.53 kB / 0.9541 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.9111, allocations: 72.33 kB / 0.9541 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.9113, allocations: 133.5 kB / 0.9543 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.9113, allocations: 0 / 0.9543 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004346/0.9118, allocations: 199.5 kB / 0.9544 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.043e-05/0.9118, allocations: 32.42 kB / 0.9545 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.9118, allocations: 1.25 kB / 0.9545 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.9118, allocations: 1.344 kB / 0.9545 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.912, allocations: 16.7 kB / 0.9545 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.912, allocations: 1.281 kB / 0.9545 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.9122, allocations: 41.41 kB / 0.9545 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.9122, allocations: 9.891 kB / 0.9545 GB, free: 4.801 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,triggeredTrapezoid1.T,triggeredTrapezoid1.rate,triggeredTrapezoid1.endValue,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition4) * 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 0.0001077/0.9124, allocations: 121.2 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.9124, allocations: 3.188 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.285e-05/0.9124, allocations: 13.58 kB / 0.9547 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.9124, allocations: 1.469 kB / 0.9547 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.9124, allocations: 1.812 kB / 0.9547 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.9124, allocations: 4 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004662/0.9129, allocations: 405.1 kB / 0.9551 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.9129, allocations: 5.078 kB / 0.9551 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.471e-05/0.913, allocations: 11.38 kB / 0.9551 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.913, allocations: 5.953 kB / 0.9551 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.913, allocations: 1.219 kB / 0.9551 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.913, allocations: 0 / 0.9551 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.913, allocations: 1.188 kB / 0.9551 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003611/0.9134, allocations: 249.7 kB / 0.9553 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.084e-05/0.9134, allocations: 82.33 kB / 0.9554 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.9135, allocations: 9.203 kB / 0.9554 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.377e-05/0.9136, allocations: 2.281 kB / 0.9554 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.762e-05/0.9136, allocations: 11.67 kB / 0.9554 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.9136, allocations: 4.812 kB / 0.9554 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.655e-05/0.9137, allocations: 94.23 kB / 0.9555 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.41e-07/0.9137, allocations: 4 kB / 0.9555 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002869/0.914, allocations: 26.88 kB / 0.9556 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: 8 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001828/0.9142, allocations: 107.2 kB / 0.9557 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004061/0.9146, allocations: 186.5 kB / 0.9558 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.9146, allocations: 0 / 0.9558 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.9148, allocations: 49.14 kB / 0.9559 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.9151, allocations: 23.47 kB / 0.9559 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004795/0.9156, allocations: 177.3 kB / 0.9561 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001495/0.9157, allocations: 0.6883 MB / 0.9567 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.322e-05/0.9158, allocations: 13.09 kB / 0.9568 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.643e-05/0.9158, allocations: 18.91 kB / 0.9568 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.9158, allocations: 0 / 0.9568 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of Templates: time 0.005297/0.9211, allocations: 1.656 MB / 0.9584 GB, free: 1.891 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches