Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007401/0.007401, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.00208/0.00208, allocations: 194.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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.818/2.818, allocations: 469.8 MB / 0.7425 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 71.89 kB / 1.065 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2843, allocations: 159.1 MB / 1.22 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001855/0.2862, allocations: 0.752 MB / 1.221 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.2876, allocations: 1.065 MB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.855e-05/0.2877, allocations: 7.938 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.823e-05/0.2877, allocations: 3.938 kB / 1.222 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7e-05/0.2878, allocations: 11.86 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000281/0.2881, allocations: 59.62 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001195/0.2882, allocations: 67.78 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.2883, allocations: 32.09 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.084e-05/0.2884, allocations: 31.84 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.187e-05/0.2885, allocations: 31.91 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.2885, allocations: 4 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.508e-05/0.2886, allocations: 19.98 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.148e-05/0.2886, allocations: 11.94 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.704e-05/0.2887, allocations: 39.84 kB / 1.222 GB, free: 12.13 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.2888, allocations: 75.67 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.2888, allocations: 0 / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.246e-06/0.2888, allocations: 0 / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.2888, allocations: 7.938 kB / 1.222 GB, free: 12.05 MB / 0.9825 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.0005511/0.2894, allocations: 383.1 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.2894, allocations: 12.03 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.534e-05/0.2895, allocations: 30.75 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.297e-05/0.2895, allocations: 12.88 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.2897, allocations: 176.3 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.2897, allocations: 8.375 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.568e-05/0.2897, allocations: 4.375 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.2899, allocations: 73.91 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.2899, allocations: 0 / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.2899, allocations: 4 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.29, allocations: 4 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.2902, allocations: 43.95 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006445/0.2908, allocations: 312.8 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/0.291, allocations: 58.58 kB / 1.223 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.2911, allocations: 32.95 kB / 1.223 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.2911, allocations: 4 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000211/0.2913, allocations: 83.31 kB / 1.224 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.2914, allocations: 0 / 1.224 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004256/0.2918, allocations: 121.6 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.2918, allocations: 63.39 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.292, allocations: 125.7 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.292, allocations: 29.7 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.581e-05/0.2921, allocations: 96.06 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.2921, allocations: 11.91 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.628e-05/0.2921, allocations: 33.64 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.2923, allocations: 318.8 kB / 1.224 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.2924, allocations: 39.91 kB / 1.224 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.2926, allocations: 69.98 kB / 1.224 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002603/0.2929, allocations: 113.8 kB / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2929, allocations: 0 / 1.225 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003372/0.2932, allocations: 129.5 kB / 1.225 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.2932, allocations: 4 kB / 1.225 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2932, allocations: 4 kB / 1.225 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.2933, allocations: 3.984 kB / 1.225 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.2934, allocations: 19.92 kB / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.2934, allocations: 4 kB / 1.225 GB, free: 9.395 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.92e-05/0.2935, allocations: 11.95 kB / 1.225 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.2935, allocations: 12.2 kB / 1.225 GB, free: 9.371 MB / 0.9825 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 0.0001231/0.2936, allocations: 127.6 kB / 1.225 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.343e-05/0.2937, allocations: 3.953 kB / 1.225 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.2937, allocations: 12.38 kB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.2937, allocations: 0 / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2937, allocations: 3.938 kB / 1.225 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.2937, allocations: 0 / 1.225 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005289/0.2943, allocations: 374.5 kB / 1.225 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.2943, allocations: 3.984 kB / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.866e-05/0.2943, allocations: 11.92 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.2943, allocations: 4 kB / 1.225 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.2944, allocations: 4 kB / 1.225 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.2944, allocations: 3.938 kB / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2944, allocations: 0 / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.2947, allocations: 207.4 kB / 1.225 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.092e-05/0.2948, allocations: 85.06 kB / 1.225 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.2948, allocations: 0 / 1.225 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.38e-05/0.2949, allocations: 11.92 kB / 1.226 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.39e-05/0.2949, allocations: 8 kB / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.2949, allocations: 3.984 kB / 1.226 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.791e-05/0.295, allocations: 95.22 kB / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.295, allocations: 0 / 1.226 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002631/0.2953, allocations: 19.98 kB / 1.226 GB, free: 8.305 MB / 0.9825 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.000689/0.296, allocations: 0.7406 MB / 1.226 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002806/0.2963, allocations: 75.89 kB / 1.226 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2963, allocations: 0 / 1.226 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.2964, allocations: 47.95 kB / 1.226 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.2967, allocations: 23.25 kB / 1.226 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.2985, allocations: 1.528 MB / 1.228 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.2989, allocations: 0.6885 MB / 1.229 GB, free: 5.035 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.524e-05/0.2989, allocations: 4 kB / 1.229 GB, free: 5.031 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.193e-05/0.299, allocations: 27.42 kB / 1.229 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.299, allocations: 0 / 1.229 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02369/0.3227, allocations: 2.083 MB / 1.231 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.677/8, allocations: 9.984 kB / 1.231 GB, free: 3.055 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches