Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.0007791/0.0007791, 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.00113/0.00113, allocations: 169.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.9194/0.9194, allocations: 177.2 MB / 202.8 MB, free: 5.746 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.757/1.757, allocations: 377.8 MB / 0.6221 GB, free: 8.668 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.TriggeredSampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.816e-06/2.816e-06, allocations: 0 / 0.9809 GB, free: 2.621 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.822e-05/2.104e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001307/0.001328, allocations: 0.7506 MB / 0.9817 GB, free: 1.871 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.002342, allocations: 1.186 MB / 0.9828 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.454e-05/0.002386, allocations: 7.938 kB / 0.9828 GB, free: 0.6641 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.141e-05/0.002418, allocations: 7.922 kB / 0.9828 GB, free: 0.6562 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.213e-05/0.00249, allocations: 15.81 kB / 0.9829 GB, free: 0.6406 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004431/0.002933, allocations: 140 kB / 0.983 GB, free: 0.5078 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.003113, allocations: 127.7 kB / 0.9831 GB, free: 392 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.003227, allocations: 16.17 kB / 0.9831 GB, free: 372 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.003345, allocations: 79.86 kB / 0.9832 GB, free: 292 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 8.549e-05/0.003431, allocations: 31.94 kB / 0.9832 GB, free: 260 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.003455, allocations: 12 kB / 0.9832 GB, free: 248 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 6.448e-05/0.003519, allocations: 27.98 kB / 0.9833 GB, free: 220 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.572e-05/0.003545, allocations: 15.92 kB / 0.9833 GB, free: 204 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 5.406e-05/0.003599, allocations: 39.91 kB / 0.9833 GB, free: 164 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.00378, allocations: 139.6 kB / 0.9835 GB, free: 24 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.003782, allocations: 0 / 0.9835 GB, free: 24 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.102e-06/0.003783, allocations: 0 / 0.9835 GB, free: 24 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.003788, allocations: 4 kB / 0.9835 GB, free: 20 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005475/0.004336, allocations: 355.6 kB / 0.9838 GB, free: 15.64 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.004379, allocations: 12.03 kB / 0.9838 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.121e-05/0.00441, allocations: 30.75 kB / 0.9838 GB, free: 15.59 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.53e-05/0.004495, allocations: 12.89 kB / 0.9839 GB, free: 15.57 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.469e-05/0.00459, allocations: 117.7 kB / 0.984 GB, free: 15.43 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.004605, allocations: 8.375 kB / 0.984 GB, free: 15.43 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.004624, allocations: 12.38 kB / 0.984 GB, free: 15.41 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003304/0.004955, allocations: 74.16 kB / 0.9841 GB, free: 15.34 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.004969, allocations: 192 / 0.9841 GB, free: 15.34 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.004984, allocations: 4.375 kB / 0.9841 GB, free: 15.33 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.004999, allocations: 7.938 kB / 0.9841 GB, free: 15.32 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.005127, allocations: 47.89 kB / 0.9841 GB, free: 15.28 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005889/0.005716, allocations: 291.8 kB / 0.9844 GB, free: 14.95 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.005883, allocations: 54.55 kB / 0.9844 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.845e-05/0.005941, allocations: 28.95 kB / 0.9845 GB, free: 14.86 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.005976, allocations: 8 kB / 0.9845 GB, free: 14.85 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002575/0.006233, allocations: 91.3 kB / 0.9846 GB, free: 14.75 MB / 0.948 GB Notification: Performance of pre-optimization done (n=8): time 2.284e-06/0.006235, allocations: 0 / 0.9846 GB, free: 14.75 MB / 0.948 GB Notification: Performance of matching and sorting (n=8): time 0.0003559/0.006591, allocations: 149.6 kB / 0.9847 GB, free: 14.59 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.006651, allocations: 59.39 kB / 0.9848 GB, free: 14.52 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.866e-05/0.00675, allocations: 117.8 kB / 0.9849 GB, free: 14.4 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.006779, allocations: 29.7 kB / 0.9849 GB, free: 14.36 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.963e-05/0.006838, allocations: 100.1 kB / 0.985 GB, free: 14.26 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.006862, allocations: 23.83 kB / 0.985 GB, free: 14.24 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.859e-05/0.00694, allocations: 37.64 kB / 0.9851 GB, free: 14.2 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.007052, allocations: 326.8 kB / 0.9854 GB, free: 13.87 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.007209, allocations: 85.66 kB / 0.9855 GB, free: 13.78 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.007328, allocations: 118.8 kB / 0.9856 GB, free: 13.64 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.007502, allocations: 154.7 kB / 0.9857 GB, free: 13.46 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.007505, allocations: 0 / 0.9857 GB, free: 13.46 MB / 0.948 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003003/0.007805, allocations: 244.8 kB / 0.986 GB, free: 13.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.116e-05/0.007847, allocations: 40.98 kB / 0.986 GB, free: 13.16 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.007853, allocations: 4 kB / 0.986 GB, free: 13.16 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.007872, allocations: 4 kB / 0.986 GB, free: 13.15 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.828e-05/0.00796, allocations: 11.98 kB / 0.986 GB, free: 13.14 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.007968, allocations: 4 kB / 0.986 GB, free: 13.14 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.00808, allocations: 35.91 kB / 0.986 GB, free: 13.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.008095, allocations: 8 kB / 0.9861 GB, free: 13.09 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * 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 8.565e-05/0.008181, allocations: 129.7 kB / 0.9862 GB, free: 12.96 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.084e-05/0.008192, allocations: 8 kB / 0.9862 GB, free: 12.95 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002074/0.008399, allocations: 118.1 kB / 0.9863 GB, free: 12.83 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.008402, allocations: 0 / 0.9863 GB, free: 12.83 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.008407, allocations: 0 / 0.9863 GB, free: 12.83 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.008413, allocations: 7.984 kB / 0.9863 GB, free: 12.82 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.008705, allocations: 353.5 kB / 0.9866 GB, free: 12.43 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.008707, allocations: 0 / 0.9866 GB, free: 12.43 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.884e-05/0.008746, allocations: 12 kB / 0.9867 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.00875, allocations: 3.984 kB / 0.9867 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.008757, allocations: 0 / 0.9867 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.008759, allocations: 0 / 0.9867 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.008761, allocations: 0 / 0.9867 GB, free: 12.41 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.008963, allocations: 227.8 kB / 0.9869 GB, free: 12.17 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.123e-05/0.008974, allocations: 7.938 kB / 0.9869 GB, free: 12.16 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.008986, allocations: 3.938 kB / 0.9869 GB, free: 12.16 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.906e-05/0.009035, allocations: 15.98 kB / 0.9869 GB, free: 12.14 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.808e-05/0.009074, allocations: 7.984 kB / 0.9869 GB, free: 12.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.495e-06/0.009081, allocations: 7.938 kB / 0.9869 GB, free: 12.13 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.063e-05/0.009122, allocations: 95.2 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.009122, allocations: 0 / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000205/0.009327, allocations: 27.95 kB / 0.987 GB, free: 12.01 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004321/0.009759, allocations: 0.7437 MB / 0.9878 GB, free: 11.24 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0002798/0.01004, allocations: 197 kB / 0.988 GB, free: 11.03 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.01004, allocations: 0 / 0.988 GB, free: 11.03 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.483e-05/0.01011, allocations: 31.97 kB / 0.988 GB, free: 11 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.01033, allocations: 15.98 kB / 0.988 GB, free: 10.98 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.01187, allocations: 1.836 MB / 0.9898 GB, free: 9 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.708e-05/0.01193, allocations: 75.58 kB / 0.9899 GB, free: 8.906 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.773e-05/0.01197, allocations: 3.984 kB / 0.9899 GB, free: 8.902 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.599e-05/0.01202, allocations: 28.48 kB / 0.9899 GB, free: 8.871 MB / 0.948 GB Notification: Performance of SimCode: time 1.062e-06/0.01202, allocations: 0 / 0.9899 GB, free: 8.871 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01721/0.02922, allocations: 3.359 MB / 0.9932 GB, free: 5.691 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.876/6.905, allocations: 1.719 kB / 0.9932 GB, free: 5.691 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_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_TriggeredSampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable booPul.y in file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv. Warning: Get data of variable booPul.y from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.152941597625613]