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.001195/0.001195, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001248/0.001248, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.365/1.365, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.252/2.252, allocations: 390.3 MB / 0.6653 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.00134, allocations: 65.12 kB / 0.8132 GB, free: 33.16 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2549, allocations: 140.4 MB / 0.9503 GB, free: 8.871 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.001936/0.2569, allocations: 0.6577 MB / 0.9509 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001521/0.2584, allocations: 1.161 MB / 0.9521 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.576e-05/0.2585, allocations: 0 / 0.9521 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.814e-05/0.2585, allocations: 3.938 kB / 0.9521 GB, free: 7.027 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.959e-05/0.2586, allocations: 7.922 kB / 0.9521 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000557/0.2592, allocations: 155.4 kB / 0.9522 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.2594, allocations: 135.7 kB / 0.9524 GB, free: 6.738 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.377e-05/0.2595, allocations: 15.97 kB / 0.9524 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.2596, allocations: 51.89 kB / 0.9524 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.2597, allocations: 47.88 kB / 0.9525 GB, free: 6.625 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.233e-05/0.2598, allocations: 12 kB / 0.9525 GB, free: 6.613 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.008e-05/0.2598, allocations: 27.97 kB / 0.9525 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.643e-05/0.2599, allocations: 11.98 kB / 0.9525 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.099e-05/0.26, allocations: 43.84 kB / 0.9526 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.2601, allocations: 119.7 kB / 0.9527 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2602, allocations: 7.938 kB / 0.9527 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2602, allocations: 0 / 0.9527 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.2602, allocations: 0 / 0.9527 GB, free: 6.406 MB / 0.7325 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.0006342/0.2608, allocations: 410.3 kB / 0.9531 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.2609, allocations: 8.031 kB / 0.9531 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.202e-05/0.2609, allocations: 8.844 kB / 0.9531 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.261, allocations: 172.3 kB / 0.9533 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.2611, allocations: 4.375 kB / 0.9533 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.2611, allocations: 4.375 kB / 0.9533 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.2613, allocations: 74.2 kB / 0.9533 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.2614, allocations: 192 / 0.9533 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.2614, allocations: 7.938 kB / 0.9533 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.2614, allocations: 4 kB / 0.9533 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001593/0.2615, allocations: 39.91 kB / 0.9534 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.2621, allocations: 324.8 kB / 0.9537 GB, free: 5.223 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002082/0.2623, allocations: 70.55 kB / 0.9538 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.2624, allocations: 36.84 kB / 0.9538 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.2624, allocations: 0 / 0.9538 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002617/0.2627, allocations: 107.3 kB / 0.9539 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=9): time 1.313e-06/0.2627, allocations: 0 / 0.9539 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9): time 0.0005224/0.2632, allocations: 185.5 kB / 0.9541 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.2633, allocations: 51.41 kB / 0.9541 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.507e-05/0.2634, allocations: 122.2 kB / 0.9542 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.2634, allocations: 29.7 kB / 0.9543 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.2635, allocations: 92.12 kB / 0.9544 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.2635, allocations: 19.73 kB / 0.9544 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.883e-05/0.2636, allocations: 37.7 kB / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.2637, allocations: 322.8 kB / 0.9547 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.2639, allocations: 43.97 kB / 0.9548 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.2641, allocations: 74.55 kB / 0.9548 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.2643, allocations: 132.1 kB / 0.955 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2644, allocations: 3.984 kB / 0.955 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004167/0.2648, allocations: 191.2 kB / 0.9551 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.376e-05/0.2649, allocations: 37.75 kB / 0.9552 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2649, allocations: 4 kB / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.2649, allocations: 0 / 0.9552 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.265, allocations: 19.92 kB / 0.9552 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.265, allocations: 4 kB / 0.9552 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.2653, allocations: 27.88 kB / 0.9552 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/0.2653, allocations: 8 kB / 0.9552 GB, free: 3.516 MB / 0.7325 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.0001048/0.2654, allocations: 135.5 kB / 0.9554 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.993e-05/0.2654, allocations: 4 kB / 0.9554 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.678e-05/0.2655, allocations: 4.375 kB / 0.9554 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-05/0.2655, allocations: 4 kB / 0.9554 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.2655, allocations: 0 / 0.9554 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.2655, allocations: 0 / 0.9554 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005488/0.2661, allocations: 410.3 kB / 0.9558 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.2661, allocations: 0 / 0.9558 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.467e-05/0.2661, allocations: 11.94 kB / 0.9558 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.2661, allocations: 3.984 kB / 0.9558 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.2662, allocations: 3.984 kB / 0.9558 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2662, allocations: 4 kB / 0.9558 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2662, allocations: 3.938 kB / 0.9558 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003643/0.2665, allocations: 239.9 kB / 0.956 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.2666, allocations: 88.95 kB / 0.9561 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.2666, allocations: 4 kB / 0.9561 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.2667, allocations: 11.98 kB / 0.9561 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.2668, allocations: 4 kB / 0.9561 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.2668, allocations: 7.984 kB / 0.9561 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.942e-05/0.2669, allocations: 91.22 kB / 0.9562 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2669, allocations: 0 / 0.9562 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000267/0.2671, allocations: 31.98 kB / 0.9563 GB, free: 2.379 MB / 0.7325 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.0001747/0.2673, allocations: 107.2 kB / 0.9564 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004099/0.2677, allocations: 187.2 kB / 0.9565 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2678, allocations: 0 / 0.9565 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.2679, allocations: 55.97 kB / 0.9566 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.2682, allocations: 11.98 kB / 0.9566 GB, free: 2 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004223/0.2686, allocations: 205.3 kB / 0.9568 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.2689, allocations: 0.6922 MB / 0.9575 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.743e-05/0.2689, allocations: 11.44 kB / 0.9575 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.2689, allocations: 0 / 0.9575 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of Templates: time 0.00295/0.2719, allocations: 1.376 MB / 0.9588 GB, free: 15.66 MB / 0.7481 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/jenkins1/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