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.001634/0.001634, 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.001926/0.001926, 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.1 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.939/2.939, allocations: 0.49 GB / 0.7923 GB, free: 1.359 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.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,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.SampleTriggerPositiveStartTime") [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.002049/0.002049, allocations: 63.89 kB / 1.15 GB, free: 13.99 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9897/0.9918, allocations: 176.1 MB / 1.322 GB, free: 7.973 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00271/0.9945, allocations: 0.7605 MB / 1.323 GB, free: 7.395 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002051/0.9966, allocations: 1.104 MB / 1.324 GB, free: 6.508 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.718e-05/0.9966, allocations: 1.594 kB / 1.324 GB, free: 6.508 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.907e-05/0.9966, allocations: 3.938 kB / 1.324 GB, free: 6.504 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.9968, allocations: 17.42 kB / 1.324 GB, free: 6.488 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000372/0.9971, allocations: 59.78 kB / 1.324 GB, free: 6.445 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001553/0.9973, allocations: 72.06 kB / 1.324 GB, free: 6.402 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.9974, allocations: 13.61 kB / 1.324 GB, free: 6.391 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 9.271e-05/0.9975, allocations: 27.02 kB / 1.324 GB, free: 6.375 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.935e-05/0.9976, allocations: 37.14 kB / 1.324 GB, free: 6.348 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.9976, allocations: 5.844 kB / 1.324 GB, free: 6.348 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.991e-05/0.9977, allocations: 24.48 kB / 1.324 GB, free: 6.336 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.013e-05/0.9977, allocations: 15.27 kB / 1.324 GB, free: 6.324 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.625e-05/0.9978, allocations: 27.16 kB / 1.324 GB, free: 6.305 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001967/0.998, allocations: 84.69 kB / 1.324 GB, free: 6.246 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.998, allocations: 4 kB / 1.324 GB, free: 6.242 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.533e-06/0.998, allocations: 0 / 1.324 GB, free: 6.242 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.998, allocations: 1.875 kB / 1.324 GB, free: 6.242 MB / 1.014 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.000696/0.9987, allocations: 372.9 kB / 1.325 GB, free: 5.855 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.9987, allocations: 13.2 kB / 1.325 GB, free: 5.852 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.9988, allocations: 8.234 kB / 1.325 GB, free: 5.848 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.999, allocations: 180.1 kB / 1.325 GB, free: 5.637 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.999, allocations: 6.469 kB / 1.325 GB, free: 5.633 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.999, allocations: 12.53 kB / 1.325 GB, free: 5.625 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.9993, allocations: 69.75 kB / 1.325 GB, free: 5.57 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.9993, allocations: 3.938 kB / 1.325 GB, free: 5.566 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.9993, allocations: 1.719 kB / 1.325 GB, free: 5.566 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.9993, allocations: 0 / 1.325 GB, free: 5.566 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002527/0.9996, allocations: 44.77 kB / 1.325 GB, free: 5.547 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008391/1, allocations: 324.3 kB / 1.325 GB, free: 5.215 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/1.001, allocations: 50.52 kB / 1.325 GB, free: 5.176 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/1.001, allocations: 25.06 kB / 1.325 GB, free: 5.16 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/1.001, allocations: 6.266 kB / 1.325 GB, free: 5.156 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004016/1.001, allocations: 81.48 kB / 1.325 GB, free: 5.082 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.984e-06/1.001, allocations: 0 / 1.325 GB, free: 5.082 MB / 1.014 GB Notification: Performance of matching and sorting (n=7): time 0.0005528/1.002, allocations: 132.6 kB / 1.325 GB, free: 5.004 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/1.002, allocations: 53.5 kB / 1.325 GB, free: 4.941 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/1.002, allocations: 132.1 kB / 1.326 GB, free: 4.816 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/1.002, allocations: 30.67 kB / 1.326 GB, free: 4.781 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.398e-05/1.002, allocations: 92.25 kB / 1.326 GB, free: 4.691 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.115e-05/1.002, allocations: 22.77 kB / 1.326 GB, free: 4.672 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.505e-05/1.002, allocations: 29.55 kB / 1.326 GB, free: 4.645 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001597/1.002, allocations: 318 kB / 1.326 GB, free: 4.328 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/1.002, allocations: 31.28 kB / 1.326 GB, free: 4.312 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/1.003, allocations: 77.83 kB / 1.326 GB, free: 4.234 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/1.003, allocations: 107.8 kB / 1.326 GB, free: 4.145 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/1.003, allocations: 0 / 1.326 GB, free: 4.145 MB / 1.014 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004531/1.003, allocations: 134.4 kB / 1.326 GB, free: 4.062 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/1.003, allocations: 11.94 kB / 1.326 GB, free: 4.059 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/1.003, allocations: 5.156 kB / 1.326 GB, free: 4.055 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/1.003, allocations: 2.469 kB / 1.326 GB, free: 4.055 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/1.004, allocations: 19.94 kB / 1.326 GB, free: 4.047 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/1.004, allocations: 2.656 kB / 1.326 GB, free: 4.047 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/1.004, allocations: 9.922 kB / 1.326 GB, free: 4.043 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/1.004, allocations: 4.594 kB / 1.326 GB, free: 4.043 MB / 1.014 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.0002184/1.004, allocations: 130.5 kB / 1.327 GB, free: 3.91 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/1.004, allocations: 11.02 kB / 1.327 GB, free: 3.902 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/1.004, allocations: 6.375 kB / 1.327 GB, free: 3.895 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/1.004, allocations: 1 kB / 1.327 GB, free: 3.895 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.004, allocations: 3.938 kB / 1.327 GB, free: 3.891 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/1.004, allocations: 0 / 1.327 GB, free: 3.891 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007129/1.005, allocations: 385.7 kB / 1.327 GB, free: 3.516 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-06/1.005, allocations: 0 / 1.327 GB, free: 3.516 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.913e-05/1.005, allocations: 13.52 kB / 1.327 GB, free: 3.508 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/1.005, allocations: 3.938 kB / 1.327 GB, free: 3.504 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/1.005, allocations: 1.188 kB / 1.327 GB, free: 3.504 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/1.005, allocations: 5.156 kB / 1.327 GB, free: 3.5 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.005, allocations: 0 / 1.327 GB, free: 3.5 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004416/1.005, allocations: 201.3 kB / 1.327 GB, free: 3.332 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/1.005, allocations: 86.31 kB / 1.327 GB, free: 3.23 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/1.005, allocations: 1.406 kB / 1.327 GB, free: 3.23 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/1.006, allocations: 12.11 kB / 1.327 GB, free: 3.223 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/1.006, allocations: 6.469 kB / 1.327 GB, free: 3.219 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/1.006, allocations: 2.406 kB / 1.327 GB, free: 3.219 MB / 1.014 GB Notification: Performance of sorting global known variables: time 7.512e-05/1.006, allocations: 97.42 kB / 1.327 GB, free: 3.133 MB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/1.006, allocations: 0 / 1.327 GB, free: 3.133 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0004329/1.006, allocations: 16.31 kB / 1.327 GB, free: 3.129 MB / 1.014 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.0001985/1.006, allocations: 113.8 kB / 1.328 GB, free: 3.031 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003757/1.007, allocations: 76.31 kB / 1.328 GB, free: 3 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/1.007, allocations: 0 / 1.328 GB, free: 3 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001523/1.007, allocations: 30.61 kB / 1.328 GB, free: 2.988 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/1.007, allocations: 14.39 kB / 1.328 GB, free: 2.98 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005001/1.008, allocations: 200.3 kB / 1.328 GB, free: 2.785 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/1.008, allocations: 0.6891 MB / 1.329 GB, free: 2.082 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.396e-05/1.008, allocations: 12.31 kB / 1.329 GB, free: 2.074 MB / 1.014 GB Notification: Performance of SimCode: time 4.5e-07/1.008, allocations: 0 / 1.329 GB, free: 2.074 MB / 1.014 GB Notification: Performance of Templates: time 0.003466/1.012, allocations: 1.043 MB / 1.33 GB, free: 1.551 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/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] "" [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.328079252998577]