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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005299/0.005299, allocations: 101.5 kB / 15.73 MB, free: 5.953 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.001284/0.001284, allocations: 192.2 kB / 16.67 MB, free: 5.883 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.164 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.434/2.434, allocations: 390.2 MB / 0.6648 GB, free: 152 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 64.36 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3226, allocations: 140.4 MB / 1.087 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.002784/0.3254, allocations: 0.6457 MB / 1.088 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00252/0.328, allocations: 1.188 MB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.3281, allocations: 0 / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.744e-05/0.3282, allocations: 7.875 kB / 1.089 GB, free: 120 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.3283, allocations: 11.88 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009981/0.3294, allocations: 154.9 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000326/0.3297, allocations: 127.7 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.3298, allocations: 15.98 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.33, allocations: 47.89 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.3302, allocations: 55.86 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.53e-05/0.3303, allocations: 12 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.3304, allocations: 27.92 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.919e-05/0.3304, allocations: 15.92 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.3306, allocations: 43.89 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.3308, allocations: 119.7 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3309, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.095e-06/0.3309, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.329e-05/0.3309, allocations: 4 kB / 1.09 GB, free: 15.5 MB / 0.8575 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.0009205/0.3318, allocations: 400.7 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.3319, allocations: 8.031 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.973e-05/0.332, allocations: 38.73 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.3321, allocations: 12.84 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.3323, allocations: 168.3 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.3323, allocations: 384 / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.703e-05/0.3324, allocations: 12.31 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002874/0.3327, allocations: 78.2 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3327, allocations: 7.938 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.3327, allocations: 0 / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.3327, allocations: 3.984 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002004/0.3329, allocations: 39.97 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.3335, allocations: 316.8 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.3337, allocations: 78.42 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.3338, allocations: 32.91 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.3338, allocations: 0 / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.3341, allocations: 111.3 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=9): time 1.482e-06/0.3341, allocations: 0 / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9): time 0.0005204/0.3346, allocations: 177.5 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.3347, allocations: 59.41 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.743e-05/0.3348, allocations: 121.7 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.3348, allocations: 29.7 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.946e-05/0.3349, allocations: 88.12 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.3349, allocations: 23.7 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.24e-05/0.335, allocations: 41.69 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.3352, allocations: 318.8 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.3353, allocations: 51.97 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.3355, allocations: 74.53 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.3357, allocations: 116.2 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3357, allocations: 0 / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004213/0.3362, allocations: 195.2 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.565e-05/0.3362, allocations: 43.72 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3362, allocations: 0 / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.3362, allocations: 4 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.3364, allocations: 15.92 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.3364, allocations: 0 / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.3366, allocations: 28.81 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.3366, allocations: 4 kB / 1.092 GB, free: 12.58 MB / 0.8575 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.0001179/0.3367, allocations: 141.4 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.997e-05/0.3368, allocations: 11.89 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.041e-05/0.3368, allocations: 4.375 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3368, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3368, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3368, allocations: 0 / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000656/0.3375, allocations: 418.3 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.3375, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.922e-05/0.3375, allocations: 8 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3375, allocations: 4 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.3376, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3376, allocations: 3.984 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3376, allocations: 4 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003929/0.338, allocations: 243.3 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.44e-05/0.338, allocations: 77.11 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.3381, allocations: 8 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.831e-05/0.3382, allocations: 7.984 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.623e-05/0.3383, allocations: 4 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.3383, allocations: 11.92 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.8e-05/0.3384, allocations: 91.22 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3384, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002909/0.3387, allocations: 35.98 kB / 1.094 GB, free: 11.43 MB / 0.8575 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.0009005/0.3396, allocations: 0.7753 MB / 1.094 GB, free: 10.63 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004076/0.34, allocations: 183.3 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.34, allocations: 0 / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.3402, allocations: 51.97 kB / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.3405, allocations: 25.7 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0023/0.3428, allocations: 1.649 MB / 1.096 GB, free: 8.617 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.3431, allocations: 0.6885 MB / 1.097 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.851e-05/0.3432, allocations: 8.672 kB / 1.097 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.637e-05/0.3432, allocations: 23.53 kB / 1.097 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of SimCode: time 3.61e-07/0.3432, allocations: 0 / 1.097 GB, free: 7.871 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02128/0.3645, allocations: 2.733 MB / 1.099 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.936/8.301, allocations: 6.234 kB / 1.099 GB, free: 5.266 MB / 0.8575 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.csv","/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