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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00653/0.006529, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001173/0.001173, allocations: 193 kB / 16.67 MB, free: 5.93 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.404/2.404, allocations: 390.3 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 67.89 kB / 0.9504 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9077/0.9091, allocations: 140.4 MB / 1.087 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002056/0.9112, allocations: 0.7493 MB / 1.088 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.9124, allocations: 1.077 MB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.341e-05/0.9125, allocations: 1 kB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.485e-05/0.9125, allocations: 4.734 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.809e-05/0.9126, allocations: 11.23 kB / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003083/0.9129, allocations: 51.47 kB / 1.089 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.9131, allocations: 72.75 kB / 1.089 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.9132, allocations: 23.66 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.145e-05/0.9133, allocations: 26.05 kB / 1.089 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.036e-05/0.9134, allocations: 34.23 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.931e-05/0.9134, allocations: 5.656 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.726e-05/0.9135, allocations: 19.83 kB / 1.09 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.5e-05/0.9135, allocations: 21.36 kB / 1.09 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.213e-05/0.9135, allocations: 30.11 kB / 1.09 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.9137, allocations: 79.88 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.9137, allocations: 1.094 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.933e-06/0.9137, allocations: 0 / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.9137, allocations: 4 kB / 1.09 GB, free: 3.793 MB / 0.8575 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.0004912/0.9142, allocations: 373.8 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.9143, allocations: 9.469 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.257e-05/0.9143, allocations: 38.09 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/0.9144, allocations: 8.688 kB / 1.09 GB, free: 3.375 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.9145, allocations: 173.3 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.9145, allocations: 3.109 kB / 1.09 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.9145, allocations: 12.62 kB / 1.09 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.9147, allocations: 72.92 kB / 1.09 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.9147, allocations: 0 / 1.09 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.9147, allocations: 0.75 kB / 1.09 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.9148, allocations: 1 kB / 1.09 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.915, allocations: 43.92 kB / 1.09 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006057/0.9156, allocations: 331.5 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.9157, allocations: 51.17 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.9159, allocations: 36.36 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.564e-05/0.9159, allocations: 1.484 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.9161, allocations: 82.64 kB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.9161, allocations: 0 / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004327/0.9166, allocations: 128.2 kB / 1.091 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.9166, allocations: 57.41 kB / 1.091 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.704e-05/0.9167, allocations: 122.6 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.9167, allocations: 26.77 kB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.721e-05/0.9168, allocations: 97.45 kB / 1.091 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.9168, allocations: 16.25 kB / 1.091 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.163e-05/0.9168, allocations: 33.28 kB / 1.091 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.803e-05/0.9169, allocations: 324 kB / 1.092 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.917, allocations: 26.94 kB / 1.092 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.9171, allocations: 77.75 kB / 1.092 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000213/0.9174, allocations: 106.5 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.9174, allocations: 1.188 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003006/0.9177, allocations: 134.5 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.9177, allocations: 5.594 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.9177, allocations: 6.422 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.9177, allocations: 2.531 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.9179, allocations: 17.2 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.9179, allocations: 7.109 kB / 1.092 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.548e-05/0.918, allocations: 12.02 kB / 1.092 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.918, allocations: 5.266 kB / 1.092 GB, free: 1.746 MB / 0.8575 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.986e-05/0.9181, allocations: 131.6 kB / 1.092 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.452e-05/0.9181, allocations: 7.016 kB / 1.092 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.736e-05/0.9181, allocations: 19.36 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.9181, allocations: 0.9062 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.9181, allocations: 0.9062 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.9181, allocations: 0.5625 kB / 1.092 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004441/0.9186, allocations: 376.3 kB / 1.092 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.9186, allocations: 0 / 1.092 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.872e-05/0.9187, allocations: 12.44 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.9187, allocations: 4.844 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.9187, allocations: 1.516 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.9187, allocations: 4.969 kB / 1.093 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.9187, allocations: 0.7969 kB / 1.093 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002674/0.919, allocations: 195.4 kB / 1.093 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.004e-05/0.919, allocations: 83.2 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.919, allocations: 5.359 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.558e-05/0.9191, allocations: 14.88 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.212e-05/0.9192, allocations: 5.422 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-06/0.9192, allocations: 2.031 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.856e-05/0.9192, allocations: 92.48 kB / 1.093 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2e-07/0.9192, allocations: 0 / 1.093 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002655/0.9195, allocations: 22.03 kB / 1.093 GB, free: 0.9023 MB / 0.8575 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.0005645/0.9201, allocations: 0.7466 MB / 1.094 GB, free: 16.21 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002871/0.9204, allocations: 83.7 kB / 1.094 GB, free: 16.19 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.9204, allocations: 448 / 1.094 GB, free: 16.19 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.9205, allocations: 35.11 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.9208, allocations: 16.22 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.9224, allocations: 1.527 MB / 1.095 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.9226, allocations: 0.6885 MB / 1.096 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.338e-05/0.9227, allocations: 6.188 kB / 1.096 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.27e-05/0.9227, allocations: 22.25 kB / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of SimCode: time 2.71e-07/0.9228, allocations: 0 / 1.096 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01937/0.9421, allocations: 2.114 MB / 1.098 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.626/8.568, allocations: 8.266 kB / 1.098 GB, free: 13.71 MB / 0.8731 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv --start-time -2 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > 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.csv","/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) Reference file matches