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.001758/0.001758, allocations: 117 kB / 16.37 MB, free: 6.012 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.001687/0.001687, allocations: 191.8 kB / 17.31 MB, free: 5.613 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.429/1.429, allocations: 222.9 MB / 241 MB, free: 15.14 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.28/2.28, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001365, allocations: 62.31 kB / 0.8141 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3012, allocations: 140.4 MB / 0.9511 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002183/0.3034, allocations: 0.7669 MB / 0.9519 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3048, allocations: 1.068 MB / 0.9529 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.679e-05/0.3049, allocations: 3.938 kB / 0.9529 GB, free: 6.191 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.142e-05/0.3049, allocations: 3.938 kB / 0.9529 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.257e-05/0.305, allocations: 19.84 kB / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.3053, allocations: 55.89 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001192/0.3054, allocations: 71.78 kB / 0.9531 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.3056, allocations: 16.17 kB / 0.9531 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.417e-05/0.3056, allocations: 27.86 kB / 0.9531 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.254e-05/0.3057, allocations: 35.89 kB / 0.9532 GB, free: 5.961 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.635e-05/0.3057, allocations: 4 kB / 0.9532 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.484e-05/0.3058, allocations: 19.98 kB / 0.9532 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.16e-05/0.3058, allocations: 19.92 kB / 0.9532 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.333e-05/0.3059, allocations: 31.86 kB / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.306, allocations: 87.67 kB / 0.9533 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.306, allocations: 3.938 kB / 0.9533 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.734e-06/0.306, allocations: 0 / 0.9533 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.3061, allocations: 0 / 0.9533 GB, free: 5.797 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.0005301/0.3066, allocations: 375.1 kB / 0.9537 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3066, allocations: 12.03 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.151e-05/0.3067, allocations: 8.922 kB / 0.9537 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.3068, allocations: 176.2 kB / 0.9539 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.3068, allocations: 8.375 kB / 0.9539 GB, free: 5.145 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.3069, allocations: 4.375 kB / 0.9539 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.3071, allocations: 70.16 kB / 0.9539 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.3071, allocations: 3.938 kB / 0.9539 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.3071, allocations: 3.984 kB / 0.954 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.3071, allocations: 4 kB / 0.954 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.3073, allocations: 47.95 kB / 0.954 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006366/0.308, allocations: 316.7 kB / 0.9543 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.3081, allocations: 58.52 kB / 0.9544 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.3083, allocations: 36.95 kB / 0.9544 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.3083, allocations: 4 kB / 0.9544 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.3085, allocations: 75.38 kB / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.3085, allocations: 0 / 0.9545 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004277/0.3089, allocations: 133.5 kB / 0.9546 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.309, allocations: 63.39 kB / 0.9547 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.3091, allocations: 117.8 kB / 0.9548 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.3091, allocations: 25.7 kB / 0.9548 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.982e-05/0.3092, allocations: 96.03 kB / 0.9549 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.3092, allocations: 15.75 kB / 0.9549 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/0.3093, allocations: 29.7 kB / 0.9549 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3094, allocations: 326.7 kB / 0.9552 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.3095, allocations: 31.97 kB / 0.9553 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.3097, allocations: 69.98 kB / 0.9553 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/0.3099, allocations: 109.8 kB / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.3099, allocations: 4 kB / 0.9554 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002948/0.3102, allocations: 129.5 kB / 0.9556 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.3102, allocations: 4 kB / 0.9556 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3102, allocations: 3.984 kB / 0.9556 GB, free: 3.215 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.3103, allocations: 4 kB / 0.9556 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3104, allocations: 19.92 kB / 0.9556 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.3104, allocations: 4 kB / 0.9556 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.814e-05/0.3105, allocations: 15.89 kB / 0.9556 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.3105, allocations: 8.219 kB / 0.9556 GB, free: 3.164 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 9.477e-05/0.3106, allocations: 125.5 kB / 0.9557 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.271e-05/0.3107, allocations: 3.906 kB / 0.9558 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.122e-05/0.3107, allocations: 12.38 kB / 0.9558 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.3107, allocations: 0 / 0.9558 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3107, allocations: 3.938 kB / 0.9558 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3107, allocations: 0 / 0.9558 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004948/0.3112, allocations: 374.5 kB / 0.9561 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3112, allocations: 0 / 0.9561 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.575e-05/0.3113, allocations: 11.92 kB / 0.9561 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3113, allocations: 0 / 0.9561 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.3113, allocations: 4 kB / 0.9561 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3113, allocations: 3.938 kB / 0.9561 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3113, allocations: 4 kB / 0.9561 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002777/0.3116, allocations: 203.4 kB / 0.9563 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.175e-05/0.3117, allocations: 88.95 kB / 0.9564 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.3117, allocations: 4 kB / 0.9564 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.645e-05/0.3118, allocations: 11.92 kB / 0.9564 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.3118, allocations: 11.88 kB / 0.9565 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.3118, allocations: 3.984 kB / 0.9565 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.006e-05/0.3119, allocations: 87.94 kB / 0.9565 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3119, allocations: 4 kB / 0.9565 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002657/0.3122, allocations: 23.98 kB / 0.9566 GB, free: 2.105 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.0001678/0.3124, allocations: 103.2 kB / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002847/0.3126, allocations: 79.88 kB / 0.9567 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3127, allocations: 0 / 0.9567 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.3128, allocations: 36.42 kB / 0.9568 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.3131, allocations: 14.14 kB / 0.9568 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003605/0.3134, allocations: 158.2 kB / 0.9569 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.3137, allocations: 0.6922 MB / 0.9576 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.571e-05/0.3138, allocations: 4 kB / 0.9576 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.974e-05/0.3138, allocations: 19.44 kB / 0.9576 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.3138, allocations: 4 kB / 0.9576 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of Templates: time 0.003462/0.3173, allocations: 0.9693 MB / 0.9586 GB, free: 12 kB / 0.7325 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 cvode -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