Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.Discrete.Examples.Sampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_10_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.008104/0.008104, allocations: 99.58 kB / 15.73 MB, free: 6.02 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.002275/0.002275, allocations: 191.9 kB / 16.67 MB, free: 5.938 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.571/2.571, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 4.922/4.922, allocations: 437 MB / 0.7105 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.003094/0.003094, allocations: 67.89 kB / 1.018 GB, free: 9.961 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.206/1.209, allocations: 151.6 MB / 1.166 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002647/1.212, allocations: 0.6677 MB / 1.167 GB, free: 3.156 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002142/1.214, allocations: 1.053 MB / 1.168 GB, free: 2.09 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.385e-05/1.214, allocations: 4 kB / 1.168 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.151e-05/1.214, allocations: 3.938 kB / 1.168 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.658e-05/1.214, allocations: 7.922 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/1.215, allocations: 35.91 kB / 1.168 GB, free: 2.039 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000154/1.215, allocations: 59.77 kB / 1.168 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/1.215, allocations: 8 kB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/1.215, allocations: 15.98 kB / 1.168 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.067e-05/1.215, allocations: 23.86 kB / 1.168 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/1.215, allocations: 4 kB / 1.168 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.932e-05/1.215, allocations: 19.98 kB / 1.168 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.448e-05/1.215, allocations: 15.97 kB / 1.168 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.249e-05/1.215, allocations: 19.88 kB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001856/1.216, allocations: 52.83 kB / 1.168 GB, free: 1.824 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/1.216, allocations: 4 kB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of FrontEnd: time 7.123e-06/1.216, allocations: 7.984 kB / 1.168 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.177e-05/1.216, allocations: 0 / 1.168 GB, free: 1.812 MB / 0.8887 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.0008517/1.217, allocations: 362 kB / 1.168 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/1.217, allocations: 8.922 kB / 1.168 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.448e-05/1.217, allocations: 42.69 kB / 1.168 GB, free: 1.352 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.638e-05/1.217, allocations: 4.938 kB / 1.168 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/1.217, allocations: 180.3 kB / 1.169 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/1.217, allocations: 384 / 1.169 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/1.217, allocations: 4.375 kB / 1.169 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/1.217, allocations: 58.23 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/1.217, allocations: 3.938 kB / 1.169 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/1.217, allocations: 3.984 kB / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/1.217, allocations: 0 / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002958/1.218, allocations: 47.91 kB / 1.169 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006384/1.218, allocations: 276.8 kB / 1.169 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/1.219, allocations: 50.55 kB / 1.169 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/1.219, allocations: 32.95 kB / 1.169 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/1.219, allocations: 80 / 1.169 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000329/1.219, allocations: 83.25 kB / 1.169 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=6): time 2.354e-06/1.219, allocations: 0 / 1.169 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0007139/1.22, allocations: 125.6 kB / 1.169 GB, free: 384 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/1.22, allocations: 55.34 kB / 1.169 GB, free: 316 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/1.22, allocations: 109.8 kB / 1.169 GB, free: 196 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/1.22, allocations: 25.7 kB / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 8.085e-05/1.22, allocations: 88.12 kB / 1.17 GB, free: 72 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.244e-05/1.22, allocations: 15.84 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.15e-05/1.22, allocations: 21.72 kB / 1.17 GB, free: 28 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002194/1.221, allocations: 322.8 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/1.221, allocations: 19.98 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/1.221, allocations: 59.34 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/1.221, allocations: 75.39 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/1.221, allocations: 0 / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004277/1.222, allocations: 113.5 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/1.222, allocations: 4 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/1.222, allocations: 0 / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/1.222, allocations: 4 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/1.222, allocations: 12.48 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/1.222, allocations: 0 / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/1.222, allocations: 12.09 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/1.222, allocations: 7.984 kB / 1.17 GB, free: 15.37 MB / 0.9044 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 0.0001349/1.222, allocations: 121.7 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/1.222, allocations: 8 kB / 1.17 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004414/1.223, allocations: 106 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/1.223, allocations: 0 / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/1.223, allocations: 0 / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/1.223, allocations: 0 / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007248/1.224, allocations: 354.4 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/1.224, allocations: 0 / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.447e-05/1.224, allocations: 15.98 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.706e-06/1.224, allocations: 0 / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/1.224, allocations: 0 / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/1.224, allocations: 4 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.224, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004756/1.224, allocations: 199.4 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.156e-05/1.224, allocations: 81.06 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/1.224, allocations: 4 kB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/1.225, allocations: 7.984 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.813e-05/1.225, allocations: 11.88 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/1.225, allocations: 0 / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.143e-05/1.225, allocations: 91.45 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.5e-07/1.225, allocations: 3.938 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004664/1.225, allocations: 15.94 kB / 1.171 GB, free: 14.26 MB / 0.9044 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.0009723/1.226, allocations: 0.7386 MB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003963/1.227, allocations: 59.94 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/1.227, allocations: 0 / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001864/1.227, allocations: 39.91 kB / 1.172 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/1.227, allocations: 14.16 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/1.23, allocations: 1.369 MB / 1.173 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/1.23, allocations: 0.6924 MB / 1.174 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.508e-05/1.23, allocations: 0 / 1.174 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.03e-05/1.23, allocations: 15.44 kB / 1.174 GB, free: 11.19 MB / 0.9044 GB Notification: Performance of SimCode: time 5.61e-07/1.23, allocations: 0 / 1.174 GB, free: 11.19 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1046/1.335, allocations: 1.759 MB / 1.176 GB, free: 9.523 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.67/19, allocations: 8.016 kB / 1.176 GB, free: 9.516 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches