Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001277/0.001277, 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.001094/0.001094, 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.9125/0.9125, 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 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.669/1.669, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 0.9505 GB, free: 3.48 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.022e-05/2.211e-05, allocations: 5.234 kB / 0.9505 GB, free: 3.477 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001391/0.001413, allocations: 0.7402 MB / 0.9512 GB, free: 2.73 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001043/0.002455, allocations: 1.093 MB / 0.9523 GB, free: 1.625 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.313e-05/0.002499, allocations: 4 kB / 0.9523 GB, free: 1.621 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.791e-05/0.002526, allocations: 7.922 kB / 0.9523 GB, free: 1.613 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.3e-05/0.002589, allocations: 7.875 kB / 0.9523 GB, free: 1.605 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002917/0.002881, allocations: 59.7 kB / 0.9524 GB, free: 1.547 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 9.649e-05/0.002978, allocations: 71.77 kB / 0.9524 GB, free: 1.477 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.967e-05/0.003077, allocations: 16.11 kB / 0.9525 GB, free: 1.457 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 7.478e-05/0.003152, allocations: 39.97 kB / 0.9525 GB, free: 1.418 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.487e-05/0.003197, allocations: 31.89 kB / 0.9525 GB, free: 1.387 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.609e-05/0.003213, allocations: 4 kB / 0.9525 GB, free: 1.383 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.019e-05/0.003263, allocations: 15.98 kB / 0.9526 GB, free: 1.367 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.193e-05/0.003285, allocations: 19.92 kB / 0.9526 GB, free: 1.348 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.976e-05/0.003315, allocations: 19.97 kB / 0.9526 GB, free: 1.328 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.003514, allocations: 83.73 kB / 0.9527 GB, free: 1.246 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.003516, allocations: 0 / 0.9527 GB, free: 1.246 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.523e-06/0.003518, allocations: 0 / 0.9527 GB, free: 1.246 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.003522, allocations: 0 / 0.9527 GB, free: 1.246 MB / 0.9011 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.0003823/0.003904, allocations: 306 kB / 0.953 GB, free: 0.918 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.003942, allocations: 8.031 kB / 0.953 GB, free: 0.9102 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.232e-05/0.003974, allocations: 46.67 kB / 0.953 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.004003, allocations: 12.88 kB / 0.953 GB, free: 0.8438 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.289e-05/0.004075, allocations: 117.7 kB / 0.9531 GB, free: 0.7031 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.689e-06/0.004085, allocations: 384 / 0.9531 GB, free: 0.7031 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.004097, allocations: 12.31 kB / 0.9532 GB, free: 0.6914 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.004228, allocations: 70.16 kB / 0.9532 GB, free: 0.6172 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.004235, allocations: 192 / 0.9532 GB, free: 0.6172 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.004244, allocations: 4.375 kB / 0.9532 GB, free: 0.6133 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.004249, allocations: 7.938 kB / 0.9532 GB, free: 0.6055 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.793e-05/0.004337, allocations: 47.89 kB / 0.9533 GB, free: 0.5586 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004021/0.004739, allocations: 272 kB / 0.9535 GB, free: 256 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.004849, allocations: 58.52 kB / 0.9536 GB, free: 188 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.663e-05/0.004896, allocations: 28.97 kB / 0.9536 GB, free: 156 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.004914, allocations: 4 kB / 0.9536 GB, free: 152 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001394/0.005053, allocations: 79.33 kB / 0.9537 GB, free: 60 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.005054, allocations: 0 / 0.9537 GB, free: 60 kB / 0.9011 GB Notification: Performance of matching and sorting (n=7): time 0.0002644/0.005318, allocations: 129.5 kB / 0.9538 GB, free: 15.93 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.005351, allocations: 59.41 kB / 0.9539 GB, free: 15.86 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.512e-05/0.005426, allocations: 121.8 kB / 0.954 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.005439, allocations: 29.7 kB / 0.954 GB, free: 15.69 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.334e-05/0.005482, allocations: 88.14 kB / 0.9541 GB, free: 15.6 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.0055, allocations: 19.84 kB / 0.9541 GB, free: 15.58 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/0.005539, allocations: 29.7 kB / 0.9542 GB, free: 15.55 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.666e-05/0.005626, allocations: 322.8 kB / 0.9545 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.217e-05/0.005698, allocations: 27.97 kB / 0.9545 GB, free: 15.2 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.629e-05/0.005774, allocations: 69.98 kB / 0.9546 GB, free: 15.11 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.005916, allocations: 117.8 kB / 0.9547 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.005919, allocations: 0 / 0.9547 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001947/0.006113, allocations: 133.6 kB / 0.9548 GB, free: 14.83 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.006129, allocations: 8 kB / 0.9548 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.006137, allocations: 7.938 kB / 0.9548 GB, free: 14.82 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.006157, allocations: 4 kB / 0.9548 GB, free: 14.81 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.006258, allocations: 19.92 kB / 0.9548 GB, free: 14.79 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.006264, allocations: 0 / 0.9548 GB, free: 14.79 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.846e-05/0.006313, allocations: 15.94 kB / 0.9548 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.006326, allocations: 8 kB / 0.9549 GB, free: 14.77 MB / 0.9167 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.795e-05/0.006404, allocations: 128 kB / 0.955 GB, free: 14.64 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.355e-06/0.006412, allocations: 7.953 kB / 0.955 GB, free: 14.63 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.779e-05/0.00644, allocations: 16.42 kB / 0.955 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.006443, allocations: 0 / 0.955 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.006449, allocations: 0 / 0.955 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.006452, allocations: 3.938 kB / 0.955 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003121/0.006764, allocations: 337.5 kB / 0.9553 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.006765, allocations: 0 / 0.9553 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.798e-05/0.006793, allocations: 11.98 kB / 0.9553 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.006796, allocations: 4 kB / 0.9553 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.006802, allocations: 0 / 0.9553 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.006804, allocations: 400 / 0.9553 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.006807, allocations: 3.938 kB / 0.9553 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.006961, allocations: 207.4 kB / 0.9555 GB, free: 13.99 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.417e-06/0.00697, allocations: 7.953 kB / 0.9556 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.006982, allocations: 0 / 0.9556 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.995e-05/0.007022, allocations: 7.984 kB / 0.9556 GB, free: 13.97 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.72e-05/0.007059, allocations: 15.97 kB / 0.9556 GB, free: 13.96 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.007066, allocations: 7.938 kB / 0.9556 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.665e-05/0.007102, allocations: 91.27 kB / 0.9557 GB, free: 13.86 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.007102, allocations: 0 / 0.9557 GB, free: 13.86 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001797/0.007282, allocations: 20 kB / 0.9557 GB, free: 13.84 MB / 0.9167 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.0005309/0.007813, allocations: 0.7397 MB / 0.9564 GB, free: 13.07 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001709/0.007984, allocations: 79.94 kB / 0.9565 GB, free: 13 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.007985, allocations: 0 / 0.9565 GB, free: 13 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.752e-05/0.008043, allocations: 35.92 kB / 0.9565 GB, free: 12.96 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.008241, allocations: 20.78 kB / 0.9565 GB, free: 12.94 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.009435, allocations: 1.516 MB / 0.958 GB, free: 11.3 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.815e-05/0.009483, allocations: 69.97 kB / 0.9581 GB, free: 11.21 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.4e-05/0.009517, allocations: 11.98 kB / 0.9581 GB, free: 11.2 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.802e-05/0.009585, allocations: 20.5 kB / 0.9581 GB, free: 11.18 MB / 0.9167 GB Notification: Performance of SimCode: time 6.91e-07/0.009586, allocations: 0 / 0.9581 GB, free: 11.18 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.02501, allocations: 2.837 MB / 0.9609 GB, free: 8.547 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.736/6.761, allocations: 9.062 kB / 0.9609 GB, free: 8.543 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.779559978283942]