Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_10_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.0101/0.0101, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001998/0.001998, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.731/2.731, allocations: 437.1 MB / 0.7105 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 63.91 kB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3178, allocations: 151.6 MB / 1.166 GB, free: 7.328 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.002195/0.3201, allocations: 0.6678 MB / 1.167 GB, free: 6.66 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001811/0.3219, allocations: 1.179 MB / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.934e-05/0.322, allocations: 0 / 1.168 GB, free: 5.465 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.537e-05/0.3221, allocations: 7.875 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.306e-05/0.3222, allocations: 7.938 kB / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006618/0.3228, allocations: 151.5 kB / 1.168 GB, free: 5.305 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.3231, allocations: 131.7 kB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.3232, allocations: 4 kB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.3234, allocations: 59.88 kB / 1.168 GB, free: 5.113 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.3235, allocations: 55.8 kB / 1.168 GB, free: 5.059 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.305e-05/0.3235, allocations: 16 kB / 1.168 GB, free: 5.043 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.688e-05/0.3236, allocations: 23.98 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.515e-05/0.3237, allocations: 19.97 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 8.324e-05/0.3238, allocations: 43.84 kB / 1.168 GB, free: 4.957 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.324, allocations: 111.9 kB / 1.169 GB, free: 4.848 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.324, allocations: 0 / 1.169 GB, free: 4.848 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.443e-06/0.324, allocations: 4 kB / 1.169 GB, free: 4.844 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.324, allocations: 0 / 1.169 GB, free: 4.844 MB / 0.92 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.0008127/0.3249, allocations: 405 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.3249, allocations: 12.03 kB / 1.169 GB, free: 4.379 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.979e-05/0.325, allocations: 30.75 kB / 1.169 GB, free: 4.34 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.178e-05/0.3251, allocations: 8.891 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.3253, allocations: 184.2 kB / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/0.3253, allocations: 4.375 kB / 1.169 GB, free: 4.109 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.432e-05/0.3253, allocations: 12.38 kB / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000233/0.3256, allocations: 66.2 kB / 1.169 GB, free: 4.027 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.3256, allocations: 7.938 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.3256, allocations: 0 / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.3256, allocations: 0 / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.3258, allocations: 43.97 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.3264, allocations: 320.8 kB / 1.17 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.3266, allocations: 70.48 kB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.3267, allocations: 40.89 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 9.709e-06/0.3267, allocations: 4 kB / 1.17 GB, free: 3.488 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003201/0.3271, allocations: 103.3 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.3271, allocations: 3.938 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of matching and sorting (n=9): time 0.0005632/0.3276, allocations: 181.5 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.3277, allocations: 51.41 kB / 1.17 GB, free: 3.125 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.3278, allocations: 117.8 kB / 1.17 GB, free: 3 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.3279, allocations: 33.7 kB / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.612e-05/0.3279, allocations: 92.09 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.328, allocations: 19.84 kB / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.954e-05/0.3281, allocations: 41.69 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3282, allocations: 318.8 kB / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.3283, allocations: 47.97 kB / 1.171 GB, free: 2.434 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.3285, allocations: 74.55 kB / 1.171 GB, free: 2.352 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.3288, allocations: 128.2 kB / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3288, allocations: 0 / 1.171 GB, free: 2.211 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004414/0.3292, allocations: 199.2 kB / 1.171 GB, free: 2.004 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.553e-05/0.3293, allocations: 33.7 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.637e-06/0.3293, allocations: 4 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.3293, allocations: 8.047 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.3295, allocations: 19.92 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.3295, allocations: 0 / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001966/0.3297, allocations: 27.97 kB / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.3297, allocations: 11.98 kB / 1.171 GB, free: 1.895 MB / 0.92 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.0001249/0.3299, allocations: 124.2 kB / 1.171 GB, free: 1.766 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.029e-05/0.3299, allocations: 8.797 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.534e-05/0.3299, allocations: 16.36 kB / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3299, allocations: 0 / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3299, allocations: 0 / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.33, allocations: 0 / 1.171 GB, free: 1.738 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005414/0.3305, allocations: 402.4 kB / 1.172 GB, free: 1.289 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3305, allocations: 0 / 1.172 GB, free: 1.289 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.418e-05/0.3306, allocations: 7.938 kB / 1.172 GB, free: 1.281 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3306, allocations: 3.984 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.3306, allocations: 12 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3306, allocations: 0 / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3306, allocations: 0 / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003687/0.331, allocations: 243.3 kB / 1.172 GB, free: 1.012 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.331, allocations: 81.06 kB / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.3311, allocations: 3.984 kB / 1.172 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.816e-05/0.3312, allocations: 7.938 kB / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.011e-05/0.3312, allocations: 11.98 kB / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.3312, allocations: 11.94 kB / 1.172 GB, free: 0.8789 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.761e-05/0.3313, allocations: 91.27 kB / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3313, allocations: 0 / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002632/0.3316, allocations: 23.94 kB / 1.172 GB, free: 0.7656 MB / 0.92 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.0006911/0.3323, allocations: 0.7831 MB / 1.173 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000376/0.3326, allocations: 179.3 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3327, allocations: 0 / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.3328, allocations: 55.92 kB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.3331, allocations: 15.92 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.335, allocations: 1.66 MB / 1.175 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.3353, allocations: 0.6846 MB / 1.175 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.926e-05/0.3354, allocations: 8.656 kB / 1.176 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.71e-05/0.3354, allocations: 19.44 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of SimCode: time 3.81e-07/0.3354, allocations: 4 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.3564, allocations: 2.732 MB / 1.178 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.746/8.102, allocations: 3.953 kB / 1.178 GB, free: 10.59 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches