Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.001582/0.001582, allocations: 114.9 kB / 17.13 MB, free: 6.008 MB / 14.72 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.001762/0.001762, allocations: 212.7 kB / 20.1 MB, free: 3.055 MB / 14.72 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 1.478/1.478, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.933/2.933, allocations: 0.49 GB / 0.7923 GB, free: 1.258 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002449/0.002449, allocations: 71.91 kB / 1.15 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9708/0.9732, allocations: 176.1 MB / 1.322 GB, free: 25.03 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001681/0.9749, allocations: 0.7519 MB / 1.323 GB, free: 24.55 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00109/0.976, allocations: 1.107 MB / 1.324 GB, free: 23.74 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.088e-05/0.976, allocations: 3.938 kB / 1.324 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.187e-05/0.9761, allocations: 3.938 kB / 1.324 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.174e-05/0.9761, allocations: 18.7 kB / 1.324 GB, free: 23.71 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002752/0.9764, allocations: 51.44 kB / 1.324 GB, free: 23.69 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.9765, allocations: 78.05 kB / 1.324 GB, free: 23.65 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.915e-05/0.9766, allocations: 12.73 kB / 1.324 GB, free: 23.64 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.666e-05/0.9767, allocations: 25.75 kB / 1.324 GB, free: 23.63 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.645e-05/0.9767, allocations: 40.39 kB / 1.324 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.9767, allocations: 9.531 kB / 1.324 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.18e-05/0.9768, allocations: 20.31 kB / 1.324 GB, free: 23.6 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.957e-05/0.9768, allocations: 17.8 kB / 1.324 GB, free: 23.59 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.961e-05/0.9769, allocations: 24.61 kB / 1.324 GB, free: 23.57 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001303/0.977, allocations: 84.23 kB / 1.324 GB, free: 23.55 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.977, allocations: 0 / 1.324 GB, free: 23.55 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.843e-06/0.977, allocations: 4 kB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.977, allocations: 0 / 1.324 GB, free: 23.54 MB / 1.061 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.0004721/0.9775, allocations: 383.4 kB / 1.325 GB, free: 23.16 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.9775, allocations: 14.27 kB / 1.325 GB, free: 23.16 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.9776, allocations: 3.438 kB / 1.325 GB, free: 23.16 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.504e-05/0.9776, allocations: 174.8 kB / 1.325 GB, free: 22.95 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.9777, allocations: 10.67 kB / 1.325 GB, free: 22.95 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.9777, allocations: 5.625 kB / 1.325 GB, free: 22.95 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.9779, allocations: 67.31 kB / 1.325 GB, free: 22.9 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.9779, allocations: 7.875 kB / 1.325 GB, free: 22.89 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.9779, allocations: 2.688 kB / 1.325 GB, free: 22.89 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.9779, allocations: 0 / 1.325 GB, free: 22.89 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.9781, allocations: 42.33 kB / 1.325 GB, free: 22.89 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005453/0.9786, allocations: 323.9 kB / 1.325 GB, free: 22.59 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001546/0.9788, allocations: 51.72 kB / 1.325 GB, free: 22.55 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.235e-05/0.9789, allocations: 32.95 kB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.9789, allocations: 4 kB / 1.325 GB, free: 22.54 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001904/0.9791, allocations: 83.48 kB / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.9791, allocations: 2.812 kB / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0003947/0.9795, allocations: 130.1 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.66e-05/0.9795, allocations: 51.41 kB / 1.325 GB, free: 22.35 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.316e-05/0.9796, allocations: 128.7 kB / 1.326 GB, free: 22.24 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.9796, allocations: 25.7 kB / 1.326 GB, free: 22.21 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.334e-05/0.9796, allocations: 95.69 kB / 1.326 GB, free: 22.12 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.569e-05/0.9796, allocations: 22.47 kB / 1.326 GB, free: 22.1 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.259e-05/0.9797, allocations: 28.19 kB / 1.326 GB, free: 22.07 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.551e-05/0.9797, allocations: 324.7 kB / 1.326 GB, free: 21.75 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.9798, allocations: 26.95 kB / 1.326 GB, free: 21.75 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.9799, allocations: 72.91 kB / 1.326 GB, free: 21.68 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/0.9801, allocations: 113.8 kB / 1.326 GB, free: 21.6 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.9802, allocations: 7.938 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002803/0.9804, allocations: 131.3 kB / 1.326 GB, free: 21.53 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.9804, allocations: 8.125 kB / 1.326 GB, free: 21.53 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.9805, allocations: 4.531 kB / 1.326 GB, free: 21.53 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.9805, allocations: 3.031 kB / 1.326 GB, free: 21.53 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.9806, allocations: 19.25 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.9806, allocations: 5.844 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.085e-05/0.9807, allocations: 9.172 kB / 1.326 GB, free: 21.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.552e-05/0.9807, allocations: 8.766 kB / 1.326 GB, free: 21.52 MB / 1.061 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 6.799e-05/0.9808, allocations: 128 kB / 1.327 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/0.9808, allocations: 6.359 kB / 1.327 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.9808, allocations: 12.31 kB / 1.327 GB, free: 21.37 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.9808, allocations: 1.906 kB / 1.327 GB, free: 21.37 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.9808, allocations: 0 / 1.327 GB, free: 21.37 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.9808, allocations: 0 / 1.327 GB, free: 21.37 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003949/0.9812, allocations: 387.5 kB / 1.327 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.9812, allocations: 0 / 1.327 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.232e-05/0.9813, allocations: 6.344 kB / 1.327 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.9813, allocations: 4 kB / 1.327 GB, free: 21.02 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.9813, allocations: 6.297 kB / 1.327 GB, free: 21.02 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.9813, allocations: 7.875 kB / 1.327 GB, free: 21.02 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.9813, allocations: 0 / 1.327 GB, free: 21.02 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002608/0.9815, allocations: 195.8 kB / 1.327 GB, free: 20.87 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.854e-05/0.9816, allocations: 81.06 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.9816, allocations: 2.906 kB / 1.327 GB, free: 20.77 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.489e-05/0.9817, allocations: 18.22 kB / 1.327 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.9817, allocations: 6.078 kB / 1.327 GB, free: 20.76 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.802e-06/0.9817, allocations: 2.719 kB / 1.327 GB, free: 20.76 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.232e-05/0.9817, allocations: 91.06 kB / 1.327 GB, free: 20.68 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9817, allocations: 0 / 1.327 GB, free: 20.68 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002573/0.982, allocations: 16.97 kB / 1.327 GB, free: 20.68 MB / 1.061 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.0001223/0.9821, allocations: 113.1 kB / 1.328 GB, free: 20.58 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002615/0.9824, allocations: 74.91 kB / 1.328 GB, free: 20.56 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.9824, allocations: 0 / 1.328 GB, free: 20.56 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.9825, allocations: 31.19 kB / 1.328 GB, free: 20.56 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.9828, allocations: 13.86 kB / 1.328 GB, free: 20.55 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003336/0.9831, allocations: 196.8 kB / 1.328 GB, free: 20.37 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001069/0.9832, allocations: 0.6907 MB / 1.328 GB, free: 19.67 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.9832, allocations: 18.95 kB / 1.329 GB, free: 19.66 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.9832, allocations: 0.6875 kB / 1.329 GB, free: 19.66 MB / 1.061 GB Notification: Performance of Templates: time 0.002918/0.9861, allocations: 1.053 MB / 1.33 GB, free: 19.57 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y [Calling sys.exit(0), Time elapsed: 11.362363970009028]