Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 110 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002179/0.002179, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 252.8 MB, free: 9.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.78/2.78, allocations: 476.7 MB / 0.7672 GB, free: 5.227 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002152/0.002152, allocations: 60.14 kB / 1.112 GB, free: 1.582 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8222/0.8244, allocations: 169.9 MB / 1.278 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001963/0.8263, allocations: 0.7222 MB / 1.279 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001705/0.828, allocations: 1.242 MB / 1.28 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.358e-05/0.8281, allocations: 0 / 1.28 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.988e-05/0.8281, allocations: 3.938 kB / 1.28 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.624e-05/0.8282, allocations: 11.86 kB / 1.28 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005126/0.8287, allocations: 146.3 kB / 1.28 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.8289, allocations: 111.8 kB / 1.28 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.173e-05/0.8289, allocations: 15.98 kB / 1.28 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.792e-05/0.829, allocations: 51.89 kB / 1.281 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.752e-05/0.8291, allocations: 47.81 kB / 1.281 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.8292, allocations: 12 kB / 1.281 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.979e-05/0.8292, allocations: 35.92 kB / 1.281 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.028e-05/0.8293, allocations: 7.984 kB / 1.281 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.044e-05/0.8293, allocations: 39.84 kB / 1.281 GB, free: 11 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.8295, allocations: 117.5 kB / 1.281 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.8295, allocations: 0 / 1.281 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.032e-06/0.8295, allocations: 0 / 1.281 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.109e-06/0.8295, allocations: 0 / 1.281 GB, free: 10.88 MB / 0.9825 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.0006372/0.8302, allocations: 412.9 kB / 1.281 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.8302, allocations: 12.03 kB / 1.281 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.281e-05/0.8303, allocations: 38.73 kB / 1.281 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.552e-05/0.8304, allocations: 8.938 kB / 1.281 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.8305, allocations: 172.3 kB / 1.281 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.8305, allocations: 8.312 kB / 1.281 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.8306, allocations: 12.36 kB / 1.281 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.8308, allocations: 66.22 kB / 1.281 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.8308, allocations: 3.938 kB / 1.281 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.8308, allocations: 0 / 1.281 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.8308, allocations: 4 kB / 1.281 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.831, allocations: 43.95 kB / 1.281 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005024/0.8315, allocations: 324.6 kB / 1.282 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.8317, allocations: 50.55 kB / 1.282 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.8318, allocations: 24.94 kB / 1.282 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.8318, allocations: 4 kB / 1.282 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.832, allocations: 87.42 kB / 1.282 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 3.747e-06/0.832, allocations: 4 kB / 1.282 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004758/0.8325, allocations: 133.8 kB / 1.282 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.8325, allocations: 59.39 kB / 1.282 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.8326, allocations: 113.8 kB / 1.282 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.8327, allocations: 29.7 kB / 1.282 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.427e-05/0.8327, allocations: 92.08 kB / 1.282 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.311e-05/0.8328, allocations: 23.84 kB / 1.282 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-05/0.8328, allocations: 33.7 kB / 1.282 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.833, allocations: 322.8 kB / 1.283 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.8332, allocations: 47.95 kB / 1.283 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.8333, allocations: 79.39 kB / 1.283 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002924/0.8336, allocations: 129 kB / 1.283 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.8336, allocations: 0 / 1.283 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00048/0.8341, allocations: 203.2 kB / 1.283 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.434e-05/0.8342, allocations: 41.69 kB / 1.283 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.8342, allocations: 4.141 kB / 1.283 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.8342, allocations: 0 / 1.283 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.8343, allocations: 12.47 kB / 1.283 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.606e-05/0.8343, allocations: 7.969 kB / 1.283 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.8345, allocations: 31.92 kB / 1.283 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.8346, allocations: 11.98 kB / 1.283 GB, free: 8 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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.0001078/0.8347, allocations: 133 kB / 1.283 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.8347, allocations: 15.89 kB / 1.283 GB, free: 7.848 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003269/0.835, allocations: 106 kB / 1.284 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.835, allocations: 0 / 1.284 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.835, allocations: 3.984 kB / 1.284 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.835, allocations: 96 / 1.284 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.8355, allocations: 370.4 kB / 1.284 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.8355, allocations: 4 kB / 1.284 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.397e-05/0.8356, allocations: 8 kB / 1.284 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.8356, allocations: 0 / 1.284 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.8356, allocations: 3.984 kB / 1.284 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.8356, allocations: 4 kB / 1.284 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.8356, allocations: 3.938 kB / 1.284 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003363/0.8359, allocations: 195.5 kB / 1.284 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.785e-05/0.836, allocations: 89 kB / 1.284 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.836, allocations: 0 / 1.284 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.705e-05/0.8361, allocations: 11.98 kB / 1.284 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.65e-05/0.8361, allocations: 11.88 kB / 1.284 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.8361, allocations: 3.984 kB / 1.284 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.978e-05/0.8362, allocations: 87.28 kB / 1.284 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.8362, allocations: 0 / 1.284 GB, free: 6.859 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002723/0.8365, allocations: 20 kB / 1.284 GB, free: 6.84 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0007043/0.8372, allocations: 0.7461 MB / 1.285 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003966/0.8376, allocations: 159.3 kB / 1.285 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8376, allocations: 0 / 1.285 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.8377, allocations: 35.91 kB / 1.285 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.838, allocations: 24.2 kB / 1.285 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.8403, allocations: 1.65 MB / 1.287 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.8406, allocations: 0.6846 MB / 1.288 GB, free: 3.375 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.31e-05/0.8407, allocations: 7.984 kB / 1.288 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/0.8407, allocations: 19.44 kB / 1.288 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.8407, allocations: 0 / 1.288 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/0.8667, allocations: 2.458 MB / 1.29 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.368/9.235, allocations: 3.984 kB / 1.29 GB, free: 1.008 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable triggeredMax.trigger in file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv. Warning: Get data of variable triggeredMax.trigger from file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.326746707083657]