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.0008629/0.0008629, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 185.1 kB / 16.92 MB, free: 6.922 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.385/1.385, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.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.421/2.421, allocations: 390.9 MB / 0.667 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003862/0.0003861, allocations: 8 kB / 0.8167 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.678/0.6784, allocations: 142.4 MB / 0.9557 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.0009188/0.6794, allocations: 483.7 kB / 0.9562 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001203/0.6806, allocations: 1.061 MB / 0.9572 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.316e-05/0.6807, allocations: 0 / 0.9572 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.71e-05/0.6807, allocations: 5.125 kB / 0.9572 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.653e-05/0.6808, allocations: 9.062 kB / 0.9573 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002396/0.681, allocations: 51.42 kB / 0.9573 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.757e-05/0.6811, allocations: 68.16 kB / 0.9574 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.6812, allocations: 16.61 kB / 0.9574 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.871e-05/0.6813, allocations: 21.11 kB / 0.9574 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.19e-05/0.6814, allocations: 29.53 kB / 0.9574 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.6814, allocations: 2.906 kB / 0.9574 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.031e-05/0.6815, allocations: 15.64 kB / 0.9574 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.838e-05/0.6815, allocations: 22.78 kB / 0.9575 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.14e-05/0.6815, allocations: 53.97 kB / 0.9575 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.282e-05/0.6816, allocations: 44.8 kB / 0.9576 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.6816, allocations: 0 / 0.9576 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.6816, allocations: 0 / 0.9576 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.6816, allocations: 0 / 0.9576 GB, free: 6.223 MB / 0.7169 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.0004498/0.6821, allocations: 375.5 kB / 0.9579 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.6822, allocations: 13.62 kB / 0.9579 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.6822, allocations: 7.906 kB / 0.9579 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.543e-05/0.6823, allocations: 175.9 kB / 0.9581 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.6823, allocations: 2.656 kB / 0.9581 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.6823, allocations: 8.375 kB / 0.9581 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.6825, allocations: 78.94 kB / 0.9582 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.6826, allocations: 7.875 kB / 0.9582 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.6826, allocations: 3.984 kB / 0.9582 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.6826, allocations: 5.406 kB / 0.9582 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.6828, allocations: 53.92 kB / 0.9583 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005533/0.6833, allocations: 336.5 kB / 0.9586 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.6835, allocations: 59.19 kB / 0.9586 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.6836, allocations: 41.58 kB / 0.9587 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.6836, allocations: 1.656 kB / 0.9587 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001876/0.6838, allocations: 83.53 kB / 0.9588 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.6838, allocations: 0 / 0.9588 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000406/0.6843, allocations: 145.8 kB / 0.9589 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.57e-05/0.6843, allocations: 57.88 kB / 0.959 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.07e-05/0.6844, allocations: 124.9 kB / 0.9591 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.6844, allocations: 26.61 kB / 0.9591 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.399e-05/0.6844, allocations: 91.06 kB / 0.9592 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.6845, allocations: 13.94 kB / 0.9592 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/0.6845, allocations: 22.64 kB / 0.9592 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.95e-05/0.6846, allocations: 319.9 kB / 0.9595 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.6847, allocations: 36.91 kB / 0.9596 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.6848, allocations: 76.14 kB / 0.9596 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.685, allocations: 125.3 kB / 0.9598 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.685, allocations: 0 / 0.9598 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003009/0.6853, allocations: 143 kB / 0.9599 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.6854, allocations: 6.938 kB / 0.9599 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.6854, allocations: 1.344 kB / 0.9599 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.6854, allocations: 2.594 kB / 0.9599 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.6855, allocations: 26.28 kB / 0.9599 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.6855, allocations: 6.25 kB / 0.9599 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.59e-05/0.6856, allocations: 12.19 kB / 0.9599 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.6857, allocations: 12.58 kB / 0.96 GB, free: 4.02 MB / 0.7169 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.446e-05/0.6857, allocations: 122.5 kB / 0.9601 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.348e-05/0.6857, allocations: 7.469 kB / 0.9601 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.408e-05/0.6858, allocations: 13.47 kB / 0.9601 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.6858, allocations: 1.125 kB / 0.9601 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.6858, allocations: 0 / 0.9601 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.6858, allocations: 1.219 kB / 0.9601 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003911/0.6862, allocations: 386.1 kB / 0.9605 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.6862, allocations: 2.062 kB / 0.9605 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.327e-05/0.6863, allocations: 15.42 kB / 0.9605 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.6863, allocations: 0 / 0.9605 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.6863, allocations: 1.656 kB / 0.9605 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.6863, allocations: 8.328 kB / 0.9605 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.6863, allocations: 0 / 0.9605 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.6866, allocations: 210.6 kB / 0.9607 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.252e-05/0.6866, allocations: 83.83 kB / 0.9608 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.6866, allocations: 8 kB / 0.9608 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.45e-05/0.6867, allocations: 14.95 kB / 0.9608 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.6867, allocations: 6.438 kB / 0.9608 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-06/0.6868, allocations: 9.734 kB / 0.9608 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.44e-05/0.6868, allocations: 92.72 kB / 0.9609 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6868, allocations: 0 / 0.9609 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002531/0.6871, allocations: 21.45 kB / 0.9609 GB, free: 3.113 MB / 0.7169 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.0001401/0.6872, allocations: 109.2 kB / 0.961 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002729/0.6875, allocations: 86.88 kB / 0.9611 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.6875, allocations: 448 / 0.9611 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.6876, allocations: 42.11 kB / 0.9611 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.6879, allocations: 13.48 kB / 0.9612 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003153/0.6882, allocations: 212 kB / 0.9614 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.6884, allocations: 0.6861 MB / 0.962 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.989e-05/0.6884, allocations: 15.55 kB / 0.962 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6884, allocations: 0 / 0.962 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of Templates: time 0.002516/0.6909, allocations: 1.027 MB / 0.963 GB, free: 1.539 MB / 0.7169 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 -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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y