Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.0008211/0.0008211, 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.0008042/0.0008042, 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.9094/0.9094, 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.77/1.77, allocations: 377.9 MB / 0.6221 GB, free: 8.656 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.SampleTrigger,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.787e-06/3.787e-06, allocations: 0 / 0.981 GB, free: 2.582 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.223e-05/2.602e-05, allocations: 6.219 kB / 0.981 GB, free: 2.574 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001597/0.001623, allocations: 0.7429 MB / 0.9817 GB, free: 1.836 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001109/0.002732, allocations: 1.085 MB / 0.9828 GB, free: 0.7383 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.034e-05/0.002782, allocations: 0 / 0.9828 GB, free: 0.7383 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 3.359e-05/0.002816, allocations: 3.938 kB / 0.9828 GB, free: 0.7344 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.223e-05/0.002888, allocations: 23.8 kB / 0.9828 GB, free: 0.7109 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.003187, allocations: 47.77 kB / 0.9828 GB, free: 0.6641 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.782e-05/0.003285, allocations: 71.77 kB / 0.9829 GB, free: 0.5938 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.003388, allocations: 20.17 kB / 0.9829 GB, free: 0.5703 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 8.447e-05/0.003472, allocations: 43.89 kB / 0.983 GB, free: 0.5273 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.907e-05/0.003521, allocations: 19.97 kB / 0.983 GB, free: 0.5078 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.792e-05/0.003539, allocations: 8 kB / 0.983 GB, free: 0.5 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.36e-05/0.003593, allocations: 19.98 kB / 0.983 GB, free: 492 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.187e-05/0.003614, allocations: 19.91 kB / 0.983 GB, free: 472 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.078e-05/0.003645, allocations: 19.94 kB / 0.9831 GB, free: 452 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001362/0.003781, allocations: 87.66 kB / 0.9831 GB, free: 364 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.003784, allocations: 0 / 0.9831 GB, free: 364 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.583e-06/0.003786, allocations: 0 / 0.9831 GB, free: 364 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.00379, allocations: 0 / 0.9831 GB, free: 364 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.0004177/0.004208, allocations: 306.1 kB / 0.9834 GB, free: 28 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.00425, allocations: 12.03 kB / 0.9834 GB, free: 16 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.004288, allocations: 30.75 kB / 0.9835 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.782e-05/0.004316, allocations: 8.891 kB / 0.9835 GB, free: 15.97 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.033e-05/0.004396, allocations: 121.7 kB / 0.9836 GB, free: 15.82 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.004409, allocations: 8.375 kB / 0.9836 GB, free: 15.82 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.004421, allocations: 8.359 kB / 0.9836 GB, free: 15.81 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.004567, allocations: 70.17 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.004573, allocations: 4.188 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.004582, allocations: 4.312 kB / 0.9837 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.004587, allocations: 3.938 kB / 0.9837 GB, free: 15.72 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.992e-05/0.004677, allocations: 43.95 kB / 0.9837 GB, free: 15.68 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004211/0.005098, allocations: 279.8 kB / 0.984 GB, free: 15.36 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/0.005212, allocations: 54.5 kB / 0.984 GB, free: 15.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.4e-05/0.005266, allocations: 36.95 kB / 0.9841 GB, free: 15.26 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.005285, allocations: 0 / 0.9841 GB, free: 15.26 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001622/0.005447, allocations: 75.47 kB / 0.9842 GB, free: 15.18 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.005449, allocations: 3.938 kB / 0.9842 GB, free: 15.17 MB / 0.948 GB Notification: Performance of matching and sorting (n=7): time 0.0002648/0.005714, allocations: 133.6 kB / 0.9843 GB, free: 15.04 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.473e-05/0.005748, allocations: 51.41 kB / 0.9843 GB, free: 14.97 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.274e-05/0.005821, allocations: 125.8 kB / 0.9845 GB, free: 14.84 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.005835, allocations: 29.7 kB / 0.9845 GB, free: 14.8 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.481e-05/0.00588, allocations: 92.12 kB / 0.9846 GB, free: 14.71 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.005896, allocations: 19.86 kB / 0.9846 GB, free: 14.69 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.005933, allocations: 29.64 kB / 0.9846 GB, free: 14.66 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.361e-05/0.006017, allocations: 322.8 kB / 0.9849 GB, free: 14.33 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.226e-05/0.006079, allocations: 27.98 kB / 0.985 GB, free: 14.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.958e-05/0.006159, allocations: 78.3 kB / 0.985 GB, free: 14.21 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.006293, allocations: 113.8 kB / 0.9851 GB, free: 14.07 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.006296, allocations: 0 / 0.9851 GB, free: 14.07 MB / 0.948 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001774/0.006473, allocations: 129.5 kB / 0.9853 GB, free: 13.94 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.006488, allocations: 4 kB / 0.9853 GB, free: 13.94 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.006496, allocations: 7.938 kB / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.00651, allocations: 0 / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.703e-05/0.006597, allocations: 15.98 kB / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.006603, allocations: 4 kB / 0.9853 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.316e-05/0.006647, allocations: 19.88 kB / 0.9853 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.006658, allocations: 8.219 kB / 0.9853 GB, free: 13.88 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.451e-05/0.006732, allocations: 125.7 kB / 0.9854 GB, free: 13.75 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-06/0.00674, allocations: 7.953 kB / 0.9854 GB, free: 13.74 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.387e-05/0.006764, allocations: 8.438 kB / 0.9855 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.006767, allocations: 0 / 0.9855 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.006773, allocations: 3.984 kB / 0.9855 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.006776, allocations: 4 kB / 0.9855 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003159/0.007092, allocations: 337.5 kB / 0.9858 GB, free: 13.35 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.007094, allocations: 0 / 0.9858 GB, free: 13.35 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.784e-05/0.007122, allocations: 11.98 kB / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.007124, allocations: 0 / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.007131, allocations: 0 / 0.9858 GB, free: 13.34 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.007133, allocations: 4 kB / 0.9858 GB, free: 13.33 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.007135, allocations: 8.328 kB / 0.9858 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001666/0.007302, allocations: 211.4 kB / 0.986 GB, free: 13.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.004e-05/0.007312, allocations: 7.953 kB / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.007323, allocations: 3.938 kB / 0.986 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.901e-05/0.007362, allocations: 11.98 kB / 0.986 GB, free: 13.08 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.197e-05/0.007394, allocations: 7.938 kB / 0.986 GB, free: 13.07 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.007402, allocations: 11.92 kB / 0.9861 GB, free: 13.06 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.659e-05/0.007438, allocations: 91.28 kB / 0.9861 GB, free: 12.97 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007438, allocations: 0 / 0.9861 GB, free: 12.97 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001687/0.007607, allocations: 19.92 kB / 0.9862 GB, free: 12.95 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.0003899/0.007997, allocations: 0.7359 MB / 0.9869 GB, free: 12.19 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001623/0.008159, allocations: 79.83 kB / 0.987 GB, free: 12.11 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.008161, allocations: 0 / 0.987 GB, free: 12.11 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.739e-05/0.008218, allocations: 31.97 kB / 0.987 GB, free: 12.08 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.008421, allocations: 15.92 kB / 0.987 GB, free: 12.06 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.00965, allocations: 1.524 MB / 0.9885 GB, free: 10.41 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.736e-05/0.009697, allocations: 71.58 kB / 0.9886 GB, free: 10.32 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.808e-05/0.009726, allocations: 11.98 kB / 0.9886 GB, free: 10.31 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.02e-05/0.009766, allocations: 24.5 kB / 0.9886 GB, free: 10.29 MB / 0.948 GB Notification: Performance of SimCode: time 5.81e-07/0.009766, allocations: 0 / 0.9886 GB, free: 10.29 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01628/0.02604, allocations: 2.821 MB / 0.9913 GB, free: 7.629 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.656/6.682, allocations: 6.984 kB / 0.9914 GB, free: 7.625 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger_res.csv. Warning: Get data of variable samTri.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri1.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.902994872070849]