Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_10_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_10_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.000861/0.0008609, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005564/0.005564, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.218/1.218, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.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.279/2.279, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003233, allocations: 8 kB / 0.873 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5819/0.5823, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0008733/0.5832, allocations: 485.4 kB / 1.024 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.5845, allocations: 1.066 MB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.556e-05/0.5846, allocations: 3.938 kB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.684e-05/0.5846, allocations: 0 / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.048e-05/0.5847, allocations: 3.938 kB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.585, allocations: 51.89 kB / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.919e-05/0.5851, allocations: 59.84 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.5852, allocations: 24.17 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.492e-05/0.5852, allocations: 31.78 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.665e-05/0.5853, allocations: 27.84 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.5853, allocations: 4 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.927e-05/0.5854, allocations: 15.98 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.027e-05/0.5854, allocations: 15.92 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.759e-05/0.5855, allocations: 53.55 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.5856, allocations: 71.73 kB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.5856, allocations: 0 / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5856, allocations: 0 / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.5856, allocations: 4 kB / 1.025 GB, free: 13.96 MB / 0.7794 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.0004825/0.5861, allocations: 373.6 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.5862, allocations: 8.031 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.813e-05/0.5862, allocations: 34.75 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.85e-05/0.5862, allocations: 4.844 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.5863, allocations: 180.1 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.5864, allocations: 12.38 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.5864, allocations: 8.375 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.5866, allocations: 73.97 kB / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.5866, allocations: 0 / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.5866, allocations: 0 / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.5866, allocations: 4 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.5868, allocations: 55.95 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005919/0.5874, allocations: 340.5 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.5876, allocations: 62.55 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.653e-05/0.5877, allocations: 28.97 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.5877, allocations: 4 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001896/0.5879, allocations: 91.39 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.5879, allocations: 0 / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004422/0.5884, allocations: 141.6 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.5884, allocations: 51.41 kB / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.806e-05/0.5885, allocations: 125.7 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.5885, allocations: 29.7 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.26e-05/0.5886, allocations: 88.14 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.5886, allocations: 15.81 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.073e-05/0.5887, allocations: 21.7 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.5888, allocations: 322.7 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.5889, allocations: 39.97 kB / 1.027 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.589, allocations: 81.92 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.5893, allocations: 117.9 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.5893, allocations: 0 / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003266/0.5896, allocations: 141.4 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.5897, allocations: 13.66 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.5897, allocations: 3.984 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.5897, allocations: 4 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.5898, allocations: 24.19 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.5898, allocations: 4 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.172e-05/0.5899, allocations: 23.83 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.5899, allocations: 7.938 kB / 1.027 GB, free: 11.21 MB / 0.7794 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.11e-05/0.59, allocations: 117.8 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.236e-05/0.5901, allocations: 4 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.5901, allocations: 16.38 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.5901, allocations: 0 / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.5901, allocations: 0 / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.5901, allocations: 0 / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004817/0.5906, allocations: 394.6 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5906, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.567e-05/0.5907, allocations: 11.98 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.5907, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.5907, allocations: 8 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.5907, allocations: 3.938 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.5907, allocations: 0 / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002871/0.591, allocations: 219.4 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.269e-05/0.591, allocations: 77.11 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.5911, allocations: 0 / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.436e-05/0.5911, allocations: 15.92 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.5912, allocations: 11.98 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.5912, allocations: 8 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.86e-05/0.5913, allocations: 91.27 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5913, allocations: 0 / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002433/0.5915, allocations: 23.91 kB / 1.028 GB, free: 10.12 MB / 0.7794 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.0006034/0.5921, allocations: 0.7524 MB / 1.029 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002843/0.5924, allocations: 95.92 kB / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5924, allocations: 0 / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.5926, allocations: 39.92 kB / 1.029 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.5928, allocations: 17.23 kB / 1.029 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.5945, allocations: 1.551 MB / 1.031 GB, free: 7.535 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.5948, allocations: 0.6926 MB / 1.031 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.961e-05/0.5948, allocations: 8 kB / 1.031 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.635e-05/0.5949, allocations: 23.42 kB / 1.031 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of SimCode: time 4.01e-07/0.5949, allocations: 0 / 1.031 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01162/0.6065, allocations: 1.798 MB / 1.033 GB, free: 5.156 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/0.6067, allocations: 224.1 kB / 1.033 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/2.318, allocations: 0 / 1.033 GB, free: 4.902 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches