Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001229/0.001229, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001523/0.001523, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.439/1.439, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.609/2.609, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 58.78 kB / 0.8707 GB, free: 1.422 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.362, allocations: 151.6 MB / 1.019 GB, free: 9.828 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002633/0.3647, allocations: 0.7607 MB / 1.02 GB, free: 9.062 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001824/0.3666, allocations: 1.075 MB / 1.021 GB, free: 7.973 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.372e-05/0.3666, allocations: 4 kB / 1.021 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.594e-05/0.3667, allocations: 7.875 kB / 1.021 GB, free: 7.961 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.637e-05/0.3668, allocations: 15.86 kB / 1.021 GB, free: 7.945 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003366/0.3671, allocations: 44.52 kB / 1.021 GB, free: 7.902 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00014/0.3673, allocations: 75.78 kB / 1.021 GB, free: 7.828 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.3674, allocations: 16.17 kB / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.845e-05/0.3675, allocations: 31.84 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.616e-05/0.3676, allocations: 31.91 kB / 1.021 GB, free: 7.746 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.3676, allocations: 4 kB / 1.021 GB, free: 7.742 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.305e-05/0.3677, allocations: 19.98 kB / 1.021 GB, free: 7.723 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.772e-05/0.3677, allocations: 27.91 kB / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.761e-05/0.3678, allocations: 27.86 kB / 1.021 GB, free: 7.668 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.368, allocations: 75.75 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.368, allocations: 3.938 kB / 1.021 GB, free: 7.59 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.955e-06/0.368, allocations: 4 kB / 1.021 GB, free: 7.586 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.368, allocations: 0 / 1.021 GB, free: 7.586 MB / 0.795 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.0006855/0.3687, allocations: 375.1 kB / 1.021 GB, free: 7.172 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.3687, allocations: 16.91 kB / 1.021 GB, free: 7.156 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.817e-05/0.3688, allocations: 8.844 kB / 1.021 GB, free: 7.148 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.3689, allocations: 176.3 kB / 1.022 GB, free: 6.938 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.369, allocations: 8.375 kB / 1.022 GB, free: 6.93 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.369, allocations: 4.375 kB / 1.022 GB, free: 6.926 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.3692, allocations: 70.16 kB / 1.022 GB, free: 6.852 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.3692, allocations: 3.938 kB / 1.022 GB, free: 6.848 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.3693, allocations: 4 kB / 1.022 GB, free: 6.844 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.3693, allocations: 0 / 1.022 GB, free: 6.844 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001686/0.3694, allocations: 43.89 kB / 1.022 GB, free: 6.801 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007081/0.3702, allocations: 320.7 kB / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.3704, allocations: 62.58 kB / 1.022 GB, free: 6.367 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.3705, allocations: 28.95 kB / 1.022 GB, free: 6.336 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.3706, allocations: 11.98 kB / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.3708, allocations: 71.38 kB / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.3708, allocations: 0 / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004708/0.3713, allocations: 133.5 kB / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.3713, allocations: 63.39 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.3715, allocations: 113.8 kB / 1.022 GB, free: 5.91 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.3715, allocations: 33.7 kB / 1.022 GB, free: 5.871 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.184e-05/0.3716, allocations: 92.03 kB / 1.023 GB, free: 5.777 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.3716, allocations: 23.73 kB / 1.023 GB, free: 5.754 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.823e-05/0.3717, allocations: 25.7 kB / 1.023 GB, free: 5.723 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.3719, allocations: 326.8 kB / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.372, allocations: 31.92 kB / 1.023 GB, free: 5.363 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.3722, allocations: 73.98 kB / 1.023 GB, free: 5.27 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002566/0.3724, allocations: 109.8 kB / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.3724, allocations: 0 / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003213/0.3728, allocations: 129.5 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3728, allocations: 11.98 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.3728, allocations: 0 / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.622e-05/0.3728, allocations: 4 kB / 1.023 GB, free: 4.992 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.373, allocations: 19.92 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.373, allocations: 4 kB / 1.023 GB, free: 4.969 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.215e-05/0.3731, allocations: 11.98 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.3731, allocations: 4.188 kB / 1.023 GB, free: 4.953 MB / 0.795 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.75e-05/0.3732, allocations: 121.8 kB / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.3732, allocations: 11.89 kB / 1.023 GB, free: 4.812 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.3733, allocations: 8.375 kB / 1.023 GB, free: 4.805 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3733, allocations: 4 kB / 1.023 GB, free: 4.801 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3733, allocations: 0 / 1.023 GB, free: 4.801 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.3733, allocations: 3.984 kB / 1.023 GB, free: 4.797 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004745/0.3738, allocations: 370.4 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3738, allocations: 0 / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.086e-05/0.3738, allocations: 7.984 kB / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-06/0.3738, allocations: 0 / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.3739, allocations: 7.938 kB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.3739, allocations: 11.94 kB / 1.024 GB, free: 4.352 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3739, allocations: 0 / 1.024 GB, free: 4.352 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.3742, allocations: 207.3 kB / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.886e-05/0.3742, allocations: 88.95 kB / 1.024 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.3743, allocations: 0 / 1.024 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-05/0.3743, allocations: 11.92 kB / 1.024 GB, free: 4.016 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.3744, allocations: 7.984 kB / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.3744, allocations: 7.938 kB / 1.024 GB, free: 4 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.65e-05/0.3745, allocations: 91.92 kB / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3745, allocations: 0 / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002504/0.3747, allocations: 16 kB / 1.024 GB, free: 3.895 MB / 0.795 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.000202/0.3749, allocations: 111.6 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002837/0.3752, allocations: 79.81 kB / 1.024 GB, free: 3.699 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3752, allocations: 4 kB / 1.024 GB, free: 3.695 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.3754, allocations: 28.42 kB / 1.024 GB, free: 3.668 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.3757, allocations: 15.98 kB / 1.024 GB, free: 3.652 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004269/0.3761, allocations: 158.2 kB / 1.025 GB, free: 3.469 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.3765, allocations: 0.6885 MB / 1.025 GB, free: 2.754 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.036e-05/0.3766, allocations: 4 kB / 1.025 GB, free: 2.75 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.676e-05/0.3766, allocations: 11.44 kB / 1.025 GB, free: 2.738 MB / 0.795 GB Notification: Performance of SimCode: time 9.42e-07/0.3766, allocations: 7.938 kB / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of Templates: time 0.004098/0.3807, allocations: 0.9724 MB / 1.026 GB, free: 1.801 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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