Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 111.9 kB / 17.96 MB, free: 3.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00214/0.00214, allocations: 192.4 kB / 21.22 MB, free: 0.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 225.6 MB / 249.9 MB, free: 13.36 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.731/2.731, allocations: 476.7 MB / 0.7635 GB, free: 10.92 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_11_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_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 68.12 kB / 1.108 GB, free: 7.391 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9497/0.9517, allocations: 168.7 MB / 1.272 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001945/0.9536, allocations: 0.7653 MB / 1.273 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.955, allocations: 1.078 MB / 1.274 GB, free: 2.719 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.778e-05/0.9551, allocations: 4 kB / 1.274 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.2e-05/0.9551, allocations: 7.875 kB / 1.274 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.693e-05/0.9552, allocations: 15.84 kB / 1.274 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.9555, allocations: 47.84 kB / 1.274 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001293/0.9556, allocations: 71.83 kB / 1.274 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.9557, allocations: 16.17 kB / 1.274 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.263e-05/0.9558, allocations: 31.86 kB / 1.274 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.451e-05/0.9559, allocations: 39.83 kB / 1.274 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.9559, allocations: 4 kB / 1.274 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.892e-05/0.956, allocations: 19.98 kB / 1.274 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.956, allocations: 15.92 kB / 1.274 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.415e-05/0.9561, allocations: 27.86 kB / 1.274 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.9562, allocations: 81.52 kB / 1.275 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.9562, allocations: 0 / 1.275 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.003e-06/0.9562, allocations: 0 / 1.275 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.9562, allocations: 0 / 1.275 GB, free: 2.34 MB / 0.9669 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.0005947/0.9568, allocations: 387.2 kB / 1.275 GB, free: 1.914 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.9569, allocations: 8.031 kB / 1.275 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.53e-05/0.9569, allocations: 38.67 kB / 1.275 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.246e-05/0.9569, allocations: 8.891 kB / 1.275 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.9571, allocations: 180.2 kB / 1.275 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.9571, allocations: 8.375 kB / 1.275 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.9571, allocations: 4.375 kB / 1.275 GB, free: 1.625 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.9573, allocations: 77.97 kB / 1.275 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.9573, allocations: 0 / 1.275 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.9573, allocations: 0 / 1.275 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.9573, allocations: 3.938 kB / 1.275 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.9575, allocations: 47.89 kB / 1.275 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006376/0.9581, allocations: 316.8 kB / 1.276 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.9583, allocations: 54.59 kB / 1.276 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.873e-05/0.9584, allocations: 28.95 kB / 1.276 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.9584, allocations: 8 kB / 1.276 GB, free: 1.031 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.9586, allocations: 75.33 kB / 1.276 GB, free: 0.9453 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.9586, allocations: 4 kB / 1.276 GB, free: 0.9414 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004126/0.9591, allocations: 125.6 kB / 1.276 GB, free: 0.8125 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.9591, allocations: 59.34 kB / 1.276 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.9592, allocations: 125.7 kB / 1.276 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.9592, allocations: 29.7 kB / 1.276 GB, free: 0.5742 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.955e-05/0.9593, allocations: 92.06 kB / 1.276 GB, free: 492 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.591e-05/0.9593, allocations: 19.91 kB / 1.276 GB, free: 472 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-05/0.9594, allocations: 29.7 kB / 1.276 GB, free: 436 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.9595, allocations: 322.8 kB / 1.277 GB, free: 104 kB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.9596, allocations: 27.98 kB / 1.277 GB, free: 76 kB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.9598, allocations: 81.91 kB / 1.277 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002353/0.96, allocations: 105.9 kB / 1.277 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.96, allocations: 0 / 1.277 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003239/0.9603, allocations: 133.5 kB / 1.277 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.9604, allocations: 8 kB / 1.277 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.9604, allocations: 224 / 1.277 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.9604, allocations: 8 kB / 1.277 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.9605, allocations: 15.98 kB / 1.277 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.9605, allocations: 7.938 kB / 1.277 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.231e-05/0.9606, allocations: 11.94 kB / 1.277 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.9606, allocations: 4 kB / 1.277 GB, free: 15.66 MB / 0.9825 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 0.000104/0.9607, allocations: 127.6 kB / 1.277 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.9607, allocations: 7.953 kB / 1.277 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.94e-05/0.9607, allocations: 8.359 kB / 1.277 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.9607, allocations: 8 kB / 1.277 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.9608, allocations: 0 / 1.277 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.9608, allocations: 0 / 1.277 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004885/0.9612, allocations: 374.7 kB / 1.277 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.679e-06/0.9613, allocations: 7.984 kB / 1.277 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.064e-05/0.9613, allocations: 4 kB / 1.277 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.9613, allocations: 3.984 kB / 1.277 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-06/0.9613, allocations: 4 kB / 1.277 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.9613, allocations: 7.938 kB / 1.277 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.9613, allocations: 3.984 kB / 1.277 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003017/0.9616, allocations: 203.4 kB / 1.278 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.827e-05/0.9617, allocations: 85.06 kB / 1.278 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.9617, allocations: 3.984 kB / 1.278 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.028e-05/0.9618, allocations: 15.94 kB / 1.278 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.396e-05/0.9618, allocations: 3.984 kB / 1.278 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.76e-06/0.9618, allocations: 4 kB / 1.278 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.101e-05/0.9619, allocations: 91.27 kB / 1.278 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.9619, allocations: 3.938 kB / 1.278 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002552/0.9622, allocations: 20 kB / 1.278 GB, free: 14.58 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: 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.0006572/0.9628, allocations: 0.7411 MB / 1.279 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000279/0.9631, allocations: 75.88 kB / 1.279 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.9631, allocations: 0 / 1.279 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.9632, allocations: 40.36 kB / 1.279 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.9635, allocations: 11.92 kB / 1.279 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.9653, allocations: 1.539 MB / 1.28 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/0.9656, allocations: 0.6885 MB / 1.281 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.424e-05/0.9657, allocations: 7.984 kB / 1.281 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.123e-05/0.9657, allocations: 19.44 kB / 1.281 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of SimCode: time 5.61e-07/0.9657, allocations: 7.875 kB / 1.281 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02456/0.9903, allocations: 2.086 MB / 1.283 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.844/8.834, allocations: 10.34 kB / 1.283 GB, free: 9.277 MB / 0.9825 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri.y from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri1.y from file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.0184667899739]