Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008256/0.0008256, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008169/0.0008169, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8893/0.8893, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.727/1.727, allocations: 377.8 MB / 0.6221 GB, free: 8.66 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.385e-06/2.385e-06, allocations: 0 / 0.9809 GB, free: 2.598 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.437e-05/1.675e-05, allocations: 4.953 kB / 0.981 GB, free: 2.594 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001266/0.001282, allocations: 0.709 MB / 0.9816 GB, free: 1.887 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001202/0.002485, allocations: 1.221 MB / 0.9828 GB, free: 0.6523 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.627e-05/0.002531, allocations: 3.938 kB / 0.9828 GB, free: 0.6484 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.916e-05/0.00256, allocations: 3.938 kB / 0.9828 GB, free: 0.6445 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.538e-05/0.002626, allocations: 11.92 kB / 0.9829 GB, free: 0.6328 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004576/0.003083, allocations: 148.4 kB / 0.983 GB, free: 0.4922 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.003233, allocations: 119.7 kB / 0.9831 GB, free: 384 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.352e-05/0.003326, allocations: 15.94 kB / 0.9831 GB, free: 368 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.003431, allocations: 67.88 kB / 0.9832 GB, free: 300 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.38e-05/0.003505, allocations: 35.94 kB / 0.9832 GB, free: 264 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.003524, allocations: 8 kB / 0.9832 GB, free: 256 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.003585, allocations: 27.98 kB / 0.9833 GB, free: 228 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.152e-05/0.003607, allocations: 15.92 kB / 0.9833 GB, free: 212 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 4.493e-05/0.003652, allocations: 31.97 kB / 0.9833 GB, free: 180 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.003812, allocations: 135.6 kB / 0.9834 GB, free: 44 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.003814, allocations: 0 / 0.9834 GB, free: 44 kB / 0.9323 GB Notification: Performance of FrontEnd: time 8.41e-07/0.003815, allocations: 0 / 0.9834 GB, free: 44 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.003819, allocations: 0 / 0.9834 GB, free: 44 kB / 0.9323 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.0005367/0.004355, allocations: 332 kB / 0.9838 GB, free: 15.68 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.004392, allocations: 12.02 kB / 0.9838 GB, free: 15.66 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.736e-05/0.00442, allocations: 34.75 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.6e-05/0.004486, allocations: 16.83 kB / 0.9838 GB, free: 15.61 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.118e-05/0.004557, allocations: 113.7 kB / 0.9839 GB, free: 15.47 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.00457, allocations: 8.375 kB / 0.9839 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.722e-05/0.004587, allocations: 12.36 kB / 0.9839 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.004714, allocations: 62.23 kB / 0.984 GB, free: 15.38 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.004722, allocations: 8.109 kB / 0.984 GB, free: 15.38 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.004731, allocations: 4.375 kB / 0.984 GB, free: 15.37 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.004737, allocations: 4.125 kB / 0.984 GB, free: 15.37 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.688e-05/0.004834, allocations: 39.95 kB / 0.9841 GB, free: 15.33 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003582/0.005192, allocations: 271.9 kB / 0.9843 GB, free: 15.02 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 9.729e-05/0.005289, allocations: 46.55 kB / 0.9844 GB, free: 14.96 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.835e-05/0.005337, allocations: 28.88 kB / 0.9844 GB, free: 14.93 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.005354, allocations: 4 kB / 0.9844 GB, free: 14.93 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001438/0.005497, allocations: 95.23 kB / 0.9845 GB, free: 14.82 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.005498, allocations: 0 / 0.9845 GB, free: 14.82 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0003223/0.005821, allocations: 137.6 kB / 0.9846 GB, free: 14.68 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.005854, allocations: 55.39 kB / 0.9847 GB, free: 14.62 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.546e-05/0.005949, allocations: 117.8 kB / 0.9848 GB, free: 14.49 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.005968, allocations: 29.7 kB / 0.9848 GB, free: 14.46 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.782e-05/0.006016, allocations: 96.09 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.006032, allocations: 15.89 kB / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.855e-05/0.006081, allocations: 37.7 kB / 0.9849 GB, free: 14.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.921e-05/0.00615, allocations: 310.8 kB / 0.9852 GB, free: 13.99 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.006254, allocations: 85.59 kB / 0.9853 GB, free: 13.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.006403, allocations: 105.1 kB / 0.9854 GB, free: 13.78 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002766/0.00668, allocations: 137 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.006684, allocations: 3.938 kB / 0.9856 GB, free: 13.62 MB / 0.948 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003321/0.007016, allocations: 233 kB / 0.9858 GB, free: 13.38 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.007052, allocations: 36.67 kB / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.00706, allocations: 320 / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.007076, allocations: 0 / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.888e-05/0.007155, allocations: 11.98 kB / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.007162, allocations: 12 kB / 0.9858 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.007279, allocations: 35.95 kB / 0.9859 GB, free: 13.28 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.007294, allocations: 7.984 kB / 0.9859 GB, free: 13.27 MB / 0.948 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 8.265e-05/0.007376, allocations: 130.2 kB / 0.986 GB, free: 13.13 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.007389, allocations: 7.953 kB / 0.986 GB, free: 13.12 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.00759, allocations: 114.1 kB / 0.9861 GB, free: 13.01 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.007593, allocations: 4 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.007598, allocations: 4 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.007602, allocations: 3.938 kB / 0.9861 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.007906, allocations: 329.5 kB / 0.9864 GB, free: 12.62 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.007909, allocations: 4 kB / 0.9865 GB, free: 12.62 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.155e-05/0.00795, allocations: 7.984 kB / 0.9865 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.007954, allocations: 4 kB / 0.9865 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.007963, allocations: 3.938 kB / 0.9865 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.007966, allocations: 0 / 0.9865 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.007968, allocations: 4 kB / 0.9865 GB, free: 12.6 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001739/0.008142, allocations: 207.3 kB / 0.9867 GB, free: 12.38 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.052e-05/0.008152, allocations: 11.94 kB / 0.9867 GB, free: 12.37 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.008167, allocations: 0 / 0.9867 GB, free: 12.37 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.567e-05/0.008213, allocations: 4 kB / 0.9867 GB, free: 12.37 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.673e-05/0.00825, allocations: 11.98 kB / 0.9867 GB, free: 12.36 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.008255, allocations: 0 / 0.9867 GB, free: 12.36 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.769e-05/0.008293, allocations: 91.27 kB / 0.9868 GB, free: 12.27 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.008293, allocations: 4 kB / 0.9868 GB, free: 12.26 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000191/0.008484, allocations: 20 kB / 0.9868 GB, free: 12.24 MB / 0.948 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.0004266/0.008911, allocations: 0.7474 MB / 0.9875 GB, free: 11.47 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002588/0.00917, allocations: 181 kB / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.009171, allocations: 4 kB / 0.9877 GB, free: 11.27 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.258e-05/0.009234, allocations: 36.09 kB / 0.9877 GB, free: 11.23 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.009441, allocations: 8 kB / 0.9878 GB, free: 11.23 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.01084, allocations: 1.751 MB / 0.9895 GB, free: 9.34 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.922e-05/0.01089, allocations: 83.52 kB / 0.9895 GB, free: 9.238 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.171e-05/0.01092, allocations: 4.281 kB / 0.9895 GB, free: 9.234 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.231e-05/0.01097, allocations: 20.48 kB / 0.9896 GB, free: 9.215 MB / 0.948 GB Notification: Performance of SimCode: time 1.462e-06/0.01097, allocations: 0 / 0.9896 GB, free: 9.215 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.03025, allocations: 3.245 MB / 0.9927 GB, free: 6.145 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.835/6.865, allocations: 11.98 kB / 0.9927 GB, free: 6.133 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv. Warning: Get data of variable triggeredMax.trigger from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.018951321952045]