Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.006246/0.006246, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.001111/0.001111, allocations: 186.8 kB / 16.67 MB, free: 5.973 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.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.571/2.571, allocations: 390.2 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 67.08 kB / 0.9504 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3172, allocations: 140.4 MB / 1.087 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002452/0.3197, allocations: 0.7522 MB / 1.088 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001627/0.3214, allocations: 1.075 MB / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.544e-05/0.3215, allocations: 0 / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.616e-05/0.3215, allocations: 3.938 kB / 1.089 GB, free: 132 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.642e-05/0.3216, allocations: 19.86 kB / 1.089 GB, free: 112 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003567/0.322, allocations: 51.83 kB / 1.089 GB, free: 60 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.3221, allocations: 71.81 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.3222, allocations: 16.19 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.068e-05/0.3223, allocations: 31.86 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.029e-05/0.3224, allocations: 27.91 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.716e-05/0.3224, allocations: 4 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.738e-05/0.3225, allocations: 27.97 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.3225, allocations: 15.92 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.945e-05/0.3226, allocations: 31.86 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.3227, allocations: 83.69 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3228, allocations: 3.938 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3228, allocations: 0 / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.718e-06/0.3228, allocations: 0 / 1.09 GB, free: 15.75 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.0005909/0.3234, allocations: 382.9 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.3234, allocations: 8.031 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.493e-05/0.3235, allocations: 38.75 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.93e-05/0.3235, allocations: 12.84 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.3237, allocations: 172.2 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.3237, allocations: 8.359 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.3237, allocations: 4.375 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.3239, allocations: 77.86 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.324, allocations: 3.984 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.324, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.324, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.3242, allocations: 47.95 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007177/0.3249, allocations: 320.7 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.3251, allocations: 58.55 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.3252, allocations: 28.97 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.3253, allocations: 0 / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002405/0.3255, allocations: 79.36 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.704e-06/0.3255, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004373/0.326, allocations: 133.6 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.326, allocations: 59.39 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.3261, allocations: 133.7 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.3262, allocations: 25.7 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.264e-05/0.3262, allocations: 88.14 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.3262, allocations: 19.75 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.3263, allocations: 29.7 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3264, allocations: 326.7 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.3266, allocations: 35.97 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.3267, allocations: 69.98 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002443/0.3269, allocations: 109.8 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3269, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003005/0.3273, allocations: 129.4 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.3273, allocations: 8 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3273, allocations: 0 / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3273, allocations: 4 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.3274, allocations: 23.92 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.3275, allocations: 0 / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.527e-05/0.3276, allocations: 12.2 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.3276, allocations: 8 kB / 1.092 GB, free: 13.07 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 9.659e-05/0.3277, allocations: 121.7 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.3277, allocations: 15.89 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.3277, allocations: 4.375 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3277, allocations: 4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3278, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.3278, allocations: 3.938 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005387/0.3283, allocations: 378.3 kB / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3283, allocations: 7.938 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.446e-05/0.3284, allocations: 8 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.3284, allocations: 3.984 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3284, allocations: 4 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.646e-06/0.3284, allocations: 3.938 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3284, allocations: 4 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002733/0.3287, allocations: 191.5 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.88e-05/0.3287, allocations: 85 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.3288, allocations: 4 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.415e-05/0.3289, allocations: 7.938 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.3289, allocations: 11.92 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.3289, allocations: 4 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.886e-05/0.329, allocations: 95.2 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.61e-07/0.329, allocations: 4 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002517/0.3292, allocations: 16 kB / 1.093 GB, free: 12.01 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.0005773/0.3298, allocations: 0.7336 MB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002654/0.3301, allocations: 79.88 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3301, allocations: 4 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.3302, allocations: 39.91 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.3305, allocations: 7.938 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.3322, allocations: 1.525 MB / 1.095 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.3326, allocations: 0.6846 MB / 1.096 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.317e-05/0.3326, allocations: 15.98 kB / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.909e-05/0.3327, allocations: 19.44 kB / 1.096 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of SimCode: time 3.3e-07/0.3327, allocations: 0 / 1.096 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.3513, allocations: 2.108 MB / 1.098 GB, free: 6.77 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.719/8.07, allocations: 8.188 kB / 1.098 GB, free: 6.766 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches