Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 106.4 kB / 16.35 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 190.5 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.332/2.332, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 68.19 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.309, allocations: 140.4 MB / 0.9511 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002191/0.3113, allocations: 0.7632 MB / 0.9519 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.3127, allocations: 1.068 MB / 0.9529 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.422e-05/0.3128, allocations: 0 / 0.9529 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.943e-05/0.3128, allocations: 7.922 kB / 0.9529 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.298e-05/0.3129, allocations: 11.88 kB / 0.9529 GB, free: 6.137 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000341/0.3133, allocations: 55.83 kB / 0.953 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001491/0.3135, allocations: 79.75 kB / 0.9531 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.3136, allocations: 12.19 kB / 0.9531 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.445e-05/0.3137, allocations: 23.92 kB / 0.9531 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.234e-05/0.3138, allocations: 35.84 kB / 0.9531 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.3138, allocations: 4 kB / 0.9531 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.507e-05/0.3139, allocations: 23.97 kB / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.578e-05/0.3139, allocations: 23.92 kB / 0.9532 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.472e-05/0.3139, allocations: 27.86 kB / 0.9532 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001655/0.3141, allocations: 83.69 kB / 0.9533 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3141, allocations: 0 / 0.9533 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3141, allocations: 0 / 0.9533 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.3141, allocations: 0 / 0.9533 GB, free: 5.77 MB / 0.7325 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.0005724/0.3147, allocations: 381.2 kB / 0.9537 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3148, allocations: 12.03 kB / 0.9537 GB, free: 5.34 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.291e-05/0.3148, allocations: 4.938 kB / 0.9537 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.315, allocations: 180.2 kB / 0.9539 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.315, allocations: 4.312 kB / 0.9539 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.828e-05/0.315, allocations: 4.375 kB / 0.9539 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.3152, allocations: 74.14 kB / 0.9539 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.3153, allocations: 3.938 kB / 0.9539 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.3153, allocations: 4 kB / 0.9539 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3153, allocations: 4 kB / 0.9539 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.3155, allocations: 43.95 kB / 0.954 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007181/0.3162, allocations: 328.6 kB / 0.9543 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.3164, allocations: 50.56 kB / 0.9543 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.668e-05/0.3165, allocations: 36.89 kB / 0.9544 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.3165, allocations: 4 kB / 0.9544 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/0.3167, allocations: 79.36 kB / 0.9545 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 3.516e-06/0.3167, allocations: 96 / 0.9545 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004166/0.3172, allocations: 129.5 kB / 0.9546 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.3172, allocations: 59.39 kB / 0.9546 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.3173, allocations: 121.8 kB / 0.9548 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.3174, allocations: 33.69 kB / 0.9548 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.219e-05/0.3174, allocations: 88.05 kB / 0.9549 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.3175, allocations: 19.75 kB / 0.9549 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.3175, allocations: 25.7 kB / 0.9549 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.3177, allocations: 326.8 kB / 0.9552 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.3178, allocations: 27.98 kB / 0.9553 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.3179, allocations: 81.91 kB / 0.9553 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.3181, allocations: 105.9 kB / 0.9554 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.3182, allocations: 4 kB / 0.9554 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003446/0.3185, allocations: 129.5 kB / 0.9556 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.3185, allocations: 7.938 kB / 0.9556 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3185, allocations: 0 / 0.9556 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.3186, allocations: 7.938 kB / 0.9556 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.3187, allocations: 15.98 kB / 0.9556 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.3187, allocations: 4 kB / 0.9556 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.884e-05/0.3188, allocations: 15.89 kB / 0.9556 GB, free: 3.137 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.3188, allocations: 4.188 kB / 0.9556 GB, free: 3.133 MB / 0.7325 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.0001156/0.319, allocations: 129.7 kB / 0.9557 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.319, allocations: 3.906 kB / 0.9557 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.318e-05/0.319, allocations: 16.36 kB / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.319, allocations: 0 / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.319, allocations: 0 / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3191, allocations: 0 / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004583/0.3195, allocations: 378.4 kB / 0.9561 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.3195, allocations: 0 / 0.9561 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.915e-05/0.3196, allocations: 4 kB / 0.9561 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3196, allocations: 0 / 0.9561 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.3196, allocations: 8 kB / 0.9561 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.358e-05/0.3196, allocations: 7.922 kB / 0.9561 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3196, allocations: 0 / 0.9561 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002652/0.3199, allocations: 195.4 kB / 0.9563 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.537e-05/0.32, allocations: 88.95 kB / 0.9564 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.32, allocations: 3.984 kB / 0.9564 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.3201, allocations: 7.938 kB / 0.9564 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.3201, allocations: 15.92 kB / 0.9564 GB, free: 2.191 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.3201, allocations: 3.938 kB / 0.9564 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.855e-05/0.3202, allocations: 91.92 kB / 0.9565 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3202, allocations: 4 kB / 0.9565 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002603/0.3205, allocations: 12 kB / 0.9565 GB, free: 2.082 MB / 0.7325 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.0001842/0.3207, allocations: 107.6 kB / 0.9566 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002765/0.3209, allocations: 83.86 kB / 0.9567 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.321, allocations: 0 / 0.9567 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.3211, allocations: 40.28 kB / 0.9568 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.3213, allocations: 12 kB / 0.9568 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00038/0.3217, allocations: 158.3 kB / 0.9569 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.322, allocations: 0.6922 MB / 0.9576 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.035e-05/0.3221, allocations: 11.98 kB / 0.9576 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.048e-05/0.3221, allocations: 15.42 kB / 0.9576 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of SimCode: time 2.9e-07/0.3221, allocations: 8 kB / 0.9576 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of Templates: time 0.003588/0.3257, allocations: 0.9706 MB / 0.9586 GB, free: 15.97 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start