Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.0008215/0.0008215, 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.0008624/0.0008624, 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.878/0.878, allocations: 177.2 MB / 202.8 MB, free: 5.727 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.749/1.749, allocations: 377.9 MB / 0.6221 GB, free: 8.629 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.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.695e-06/2.695e-06, allocations: 0 / 0.981 GB, free: 2.562 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.972e-05/2.241e-05, allocations: 4.953 kB / 0.981 GB, free: 2.559 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001391/0.001413, allocations: 0.7285 MB / 0.9817 GB, free: 1.832 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001214/0.002627, allocations: 1.096 MB / 0.9828 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.669e-05/0.002674, allocations: 7.938 kB / 0.9828 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.338e-05/0.002707, allocations: 3.938 kB / 0.9828 GB, free: 0.7109 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.78e-05/0.002775, allocations: 11.86 kB / 0.9828 GB, free: 0.6992 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.003078, allocations: 62.83 kB / 0.9828 GB, free: 0.6406 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.604e-05/0.003174, allocations: 75.75 kB / 0.9829 GB, free: 0.5664 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.003279, allocations: 8.188 kB / 0.9829 GB, free: 0.5547 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 8.588e-05/0.003365, allocations: 39.91 kB / 0.983 GB, free: 0.5156 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 5.393e-05/0.003419, allocations: 27.95 kB / 0.983 GB, free: 500 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.003439, allocations: 12 kB / 0.983 GB, free: 488 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.715e-05/0.003497, allocations: 19.92 kB / 0.983 GB, free: 468 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.356e-05/0.00352, allocations: 15.97 kB / 0.983 GB, free: 452 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.003554, allocations: 15.94 kB / 0.9831 GB, free: 436 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001336/0.003687, allocations: 91.66 kB / 0.9831 GB, free: 344 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.00369, allocations: 0 / 0.9831 GB, free: 344 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.312e-06/0.003691, allocations: 0 / 0.9831 GB, free: 344 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.003696, allocations: 0 / 0.9831 GB, free: 344 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004075/0.004103, allocations: 306 kB / 0.9834 GB, free: 8 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.004151, allocations: 8.078 kB / 0.9834 GB, free: 16 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.917e-05/0.004181, allocations: 42.75 kB / 0.9835 GB, free: 15.95 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.011e-05/0.004211, allocations: 12.88 kB / 0.9835 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.108e-05/0.004292, allocations: 117.6 kB / 0.9836 GB, free: 15.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.004303, allocations: 4.375 kB / 0.9836 GB, free: 15.79 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.201e-05/0.004315, allocations: 4.375 kB / 0.9836 GB, free: 15.79 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.004461, allocations: 66.17 kB / 0.9837 GB, free: 15.72 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.004469, allocations: 4.172 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.004479, allocations: 4.375 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.004485, allocations: 3.938 kB / 0.9837 GB, free: 15.71 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.271e-05/0.004578, allocations: 43.97 kB / 0.9837 GB, free: 15.66 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004581/0.005036, allocations: 275.9 kB / 0.984 GB, free: 15.35 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/0.005161, allocations: 54.5 kB / 0.984 GB, free: 15.29 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.481e-05/0.005216, allocations: 32.95 kB / 0.9841 GB, free: 15.25 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.005236, allocations: 4 kB / 0.9841 GB, free: 15.25 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/0.0054, allocations: 83.42 kB / 0.9842 GB, free: 15.16 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 2.004e-06/0.005402, allocations: 7.938 kB / 0.9842 GB, free: 15.15 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0002787/0.005681, allocations: 121.6 kB / 0.9843 GB, free: 15.02 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.005719, allocations: 59.41 kB / 0.9843 GB, free: 14.95 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.071e-05/0.0058, allocations: 133.7 kB / 0.9845 GB, free: 14.81 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.005813, allocations: 25.7 kB / 0.9845 GB, free: 14.78 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.445e-05/0.005857, allocations: 88.14 kB / 0.9846 GB, free: 14.69 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.005874, allocations: 19.84 kB / 0.9846 GB, free: 14.67 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.005918, allocations: 33.7 kB / 0.9846 GB, free: 14.63 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.633e-05/0.006004, allocations: 318.8 kB / 0.9849 GB, free: 14.31 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.408e-05/0.006068, allocations: 23.98 kB / 0.985 GB, free: 14.29 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.566e-05/0.006154, allocations: 81.91 kB / 0.985 GB, free: 14.19 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.006299, allocations: 105.9 kB / 0.9851 GB, free: 14.06 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.006301, allocations: 0 / 0.9851 GB, free: 14.06 MB / 0.948 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001851/0.006486, allocations: 133.6 kB / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.006501, allocations: 15 kB / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.006506, allocations: 3.938 kB / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.006521, allocations: 4 kB / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.502e-05/0.006606, allocations: 15.98 kB / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.006613, allocations: 4 kB / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.241e-05/0.006655, allocations: 11.94 kB / 0.9853 GB, free: 13.88 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.006666, allocations: 4 kB / 0.9853 GB, free: 13.87 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 7.957e-05/0.006746, allocations: 133.7 kB / 0.9854 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.828e-06/0.006755, allocations: 3.953 kB / 0.9854 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.628e-05/0.006782, allocations: 20.42 kB / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.006784, allocations: 0 / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.006789, allocations: 0 / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.006792, allocations: 0 / 0.9855 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002991/0.007091, allocations: 337.8 kB / 0.9858 GB, free: 13.33 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.007093, allocations: 0 / 0.9858 GB, free: 13.33 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.816e-05/0.007121, allocations: 11.98 kB / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.007122, allocations: 0 / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.007129, allocations: 3.938 kB / 0.9858 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.00713, allocations: 4 kB / 0.9858 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.007131, allocations: 80 / 0.9858 GB, free: 13.31 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.007295, allocations: 207.4 kB / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 9.848e-06/0.007304, allocations: 7.953 kB / 0.986 GB, free: 13.08 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.101e-05/0.007315, allocations: 0 / 0.986 GB, free: 13.08 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.007493, allocations: 7.984 kB / 0.986 GB, free: 13.07 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.703e-05/0.00753, allocations: 19.91 kB / 0.986 GB, free: 13.05 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.007536, allocations: 3.938 kB / 0.986 GB, free: 13.05 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.647e-05/0.007572, allocations: 99.27 kB / 0.9861 GB, free: 12.95 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.007572, allocations: 0 / 0.9861 GB, free: 12.95 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001807/0.007753, allocations: 16 kB / 0.9862 GB, free: 12.94 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * 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.0003851/0.008138, allocations: 0.7364 MB / 0.9869 GB, free: 12.18 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001944/0.008332, allocations: 80.19 kB / 0.9869 GB, free: 12.1 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.008334, allocations: 8 kB / 0.987 GB, free: 12.09 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.1e-05/0.008395, allocations: 31.98 kB / 0.987 GB, free: 12.06 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.008605, allocations: 20.84 kB / 0.987 GB, free: 12.04 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.009751, allocations: 1.524 MB / 0.9885 GB, free: 10.39 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.002e-05/0.009801, allocations: 75.58 kB / 0.9886 GB, free: 10.3 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.962e-05/0.009831, allocations: 7.984 kB / 0.9886 GB, free: 10.29 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.196e-05/0.009873, allocations: 20.5 kB / 0.9886 GB, free: 10.27 MB / 0.948 GB Notification: Performance of SimCode: time 6.52e-07/0.009873, allocations: 0 / 0.9886 GB, free: 10.27 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.02743, allocations: 2.833 MB / 0.9914 GB, free: 7.645 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.676/6.703, allocations: 5.188 kB / 0.9914 GB, free: 7.641 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv --start-time 1 --stop-time 6 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable samTri.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable samTri.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable samTri1.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.848283943720162]