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.001074/0.001074, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001155/0.001155, allocations: 189.8 kB / 16.25 MB, free: 6.633 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.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.36/2.36, allocations: 437 MB / 0.7101 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.89 kB / 0.8689 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5293/0.5306, allocations: 151.6 MB / 1.017 GB, free: 2.672 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001879/0.5325, allocations: 0.7343 MB / 1.018 GB, free: 1.941 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001085/0.5336, allocations: 1.042 MB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.45e-05/0.5336, allocations: 0 / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.938e-05/0.5337, allocations: 0 / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.174e-05/0.5338, allocations: 15.91 kB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.534, allocations: 31.86 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.322e-05/0.5341, allocations: 51.89 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.504e-05/0.5342, allocations: 12 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.602e-05/0.5342, allocations: 19.92 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.334e-05/0.5343, allocations: 19.92 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.5343, allocations: 4 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.741e-05/0.5343, allocations: 15.98 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.777e-05/0.5344, allocations: 19.91 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.202e-05/0.5344, allocations: 19.88 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.5345, allocations: 51.84 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.5345, allocations: 3.984 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5345, allocations: 0 / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.5346, allocations: 4 kB / 1.019 GB, free: 0.6172 MB / 0.7637 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.0005005/0.5351, allocations: 373.5 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.5351, allocations: 8.031 kB / 1.019 GB, free: 200 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.156e-05/0.5351, allocations: 30.75 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.907e-05/0.5352, allocations: 8.938 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.552e-05/0.5353, allocations: 168.3 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.5353, allocations: 4.375 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.5353, allocations: 8.375 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001922/0.5355, allocations: 58.23 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.5355, allocations: 11.86 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.5355, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.5355, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001648/0.5357, allocations: 39.97 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003622/0.5361, allocations: 276.8 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/0.5362, allocations: 58.53 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.43e-05/0.5363, allocations: 32.95 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.5364, allocations: 3.938 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000174/0.5365, allocations: 75.39 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.5366, allocations: 0 / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0003636/0.5369, allocations: 121.5 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.537, allocations: 59.34 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.399e-05/0.537, allocations: 105.9 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.5371, allocations: 25.7 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.547e-05/0.5371, allocations: 96.05 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/0.5371, allocations: 19.75 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/0.5372, allocations: 21.72 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.562e-05/0.5373, allocations: 322.8 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.949e-05/0.5374, allocations: 19.98 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.5375, allocations: 55.39 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.5376, allocations: 79.33 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5377, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002355/0.5379, allocations: 109.6 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.5379, allocations: 4 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.5379, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.5379, allocations: 4 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.188e-05/0.538, allocations: 11.98 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.538, allocations: 3.938 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.358e-05/0.5381, allocations: 11.91 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.5381, allocations: 3.984 kB / 1.021 GB, free: 14.17 MB / 0.7794 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 7.065e-05/0.5382, allocations: 122.4 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.5382, allocations: 4 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000249/0.5385, allocations: 98.02 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.5385, allocations: 4 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.5385, allocations: 7.875 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.5385, allocations: 0 / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003679/0.5389, allocations: 351.1 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.5389, allocations: 0 / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.865e-05/0.539, allocations: 16.05 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.539, allocations: 0 / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.539, allocations: 4 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.539, allocations: 4 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.539, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.5392, allocations: 199.3 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.741e-05/0.5393, allocations: 81.05 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.5393, allocations: 8 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.5394, allocations: 7.984 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.5395, allocations: 11.88 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.5395, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.707e-05/0.5395, allocations: 91.27 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5395, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002248/0.5397, allocations: 16 kB / 1.022 GB, free: 13.06 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: 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.000486/0.5402, allocations: 0.728 MB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002254/0.5405, allocations: 67.88 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.5405, allocations: 0 / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.5406, allocations: 31.98 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.5408, allocations: 14.17 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.5421, allocations: 1.385 MB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.5423, allocations: 0.6807 MB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.047e-05/0.5424, allocations: 7.984 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.5424, allocations: 19.42 kB / 1.025 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of SimCode: time 1.91e-07/0.5424, allocations: 0 / 1.025 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.095/1.637, allocations: 1.584 MB / 1.026 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/1.637, allocations: 197 kB / 1.027 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.776/3.413, allocations: 11.44 kB / 1.027 GB, free: 8.254 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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