Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.01757/0.01757, allocations: 95.98 kB / 15.73 MB, free: 6.039 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.002506/0.002506, allocations: 198.7 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.68/2.68, allocations: 222.9 MB / 240.4 MB, free: 4.32 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 3.193/3.193, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 57.91 kB / 0.9504 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2939, allocations: 140.4 MB / 1.087 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001954/0.2959, allocations: 0.6725 MB / 1.088 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.2973, allocations: 1.048 MB / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.856e-05/0.2974, allocations: 0 / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.959e-05/0.2974, allocations: 7.875 kB / 1.089 GB, free: 332 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.219e-05/0.2975, allocations: 7.922 kB / 1.089 GB, free: 324 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.2978, allocations: 35.91 kB / 1.089 GB, free: 288 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001221/0.2979, allocations: 51.83 kB / 1.089 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.716e-05/0.2981, allocations: 8 kB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.234e-05/0.2981, allocations: 23.92 kB / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.461e-05/0.2982, allocations: 19.92 kB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.2982, allocations: 4 kB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.817e-05/0.2983, allocations: 15.98 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.481e-05/0.2983, allocations: 15.97 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.2984, allocations: 19.88 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.2985, allocations: 56.05 kB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2985, allocations: 0 / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.854e-06/0.2985, allocations: 4 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.2986, allocations: 0 / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006615/0.2992, allocations: 367.3 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.2993, allocations: 8.031 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.603e-05/0.2993, allocations: 30.75 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.906e-05/0.2994, allocations: 8.891 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.2995, allocations: 176.3 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.2995, allocations: 384 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.2995, allocations: 4.375 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.2997, allocations: 66.22 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.2998, allocations: 3.938 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.2998, allocations: 0 / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.2998, allocations: 3.938 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.3, allocations: 43.91 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004711/0.3005, allocations: 284.8 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.3007, allocations: 50.55 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.3008, allocations: 32.95 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.3008, allocations: 3.984 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002053/0.301, allocations: 83.33 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.301, allocations: 4 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004257/0.3015, allocations: 117.6 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.3015, allocations: 55.41 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.163e-05/0.3016, allocations: 105.8 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.3016, allocations: 25.7 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.469e-05/0.3017, allocations: 88.08 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.3017, allocations: 23.84 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.3018, allocations: 21.72 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.3019, allocations: 322.8 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.302, allocations: 19.98 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.3021, allocations: 51.34 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.3023, allocations: 87.33 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3024, allocations: 0 / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000277/0.3026, allocations: 109.7 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3027, allocations: 4 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3027, allocations: 0 / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.3027, allocations: 4 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.3028, allocations: 11.98 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.3028, allocations: 0 / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.712e-05/0.3029, allocations: 8 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.3029, allocations: 3.984 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 8.67e-05/0.303, allocations: 125.7 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.303, allocations: 7.953 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002884/0.3033, allocations: 102 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3033, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3033, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3034, allocations: 0 / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004452/0.3038, allocations: 351 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3038, allocations: 4 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.048e-05/0.3039, allocations: 15.98 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.3039, allocations: 4 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.3039, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3039, allocations: 4 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3039, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.3042, allocations: 203.3 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.3043, allocations: 77.11 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.3043, allocations: 8 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.3044, allocations: 7.984 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.182e-05/0.3045, allocations: 7.938 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/0.3045, allocations: 3.984 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.009e-05/0.3045, allocations: 83.28 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3045, allocations: 3.938 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002599/0.3048, allocations: 19.89 kB / 1.093 GB, free: 12.51 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0006254/0.3054, allocations: 0.728 MB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002693/0.3057, allocations: 67.88 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3057, allocations: 0 / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.3059, allocations: 35.97 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.3062, allocations: 15.38 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.3078, allocations: 1.361 MB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.308, allocations: 0.6846 MB / 1.095 GB, free: 9.469 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.541e-05/0.3081, allocations: 3.75 kB / 1.095 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.934e-05/0.3081, allocations: 19.44 kB / 1.095 GB, free: 9.445 MB / 0.8575 GB Notification: Performance of SimCode: time 2.074e-06/0.3081, allocations: 0 / 1.095 GB, free: 9.445 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02078/0.3289, allocations: 1.76 MB / 1.097 GB, free: 7.773 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.347/8.676, allocations: 1.312 kB / 1.097 GB, free: 7.773 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches