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.007016/0.007016, allocations: 101.6 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.002134/0.002134, allocations: 193.4 kB / 16.67 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 1.223/1.223, allocations: 222.9 MB / 240.4 MB, free: 15.17 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 2.201/2.201, allocations: 437.1 MB / 0.7106 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 67.89 kB / 1.018 GB, free: 9.914 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5677/0.5694, allocations: 151.6 MB / 1.166 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001493/0.5709, allocations: 0.6678 MB / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.5721, allocations: 1.049 MB / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.002e-05/0.5721, allocations: 0 / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.535e-05/0.5721, allocations: 3.984 kB / 1.168 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.073e-05/0.5722, allocations: 15.86 kB / 1.168 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.5724, allocations: 39.91 kB / 1.168 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.743e-05/0.5725, allocations: 47.8 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 7.599e-05/0.5726, allocations: 15.97 kB / 1.168 GB, free: 1.949 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.927e-05/0.5727, allocations: 19.92 kB / 1.168 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.637e-05/0.5727, allocations: 19.92 kB / 1.168 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.5727, allocations: 4 kB / 1.168 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.787e-05/0.5728, allocations: 23.98 kB / 1.168 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.002e-05/0.5728, allocations: 11.97 kB / 1.168 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.108e-05/0.5729, allocations: 19.88 kB / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.573, allocations: 54.53 kB / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.573, allocations: 0 / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of FrontEnd: time 8.61e-07/0.573, allocations: 0 / 1.168 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.573, allocations: 0 / 1.168 GB, free: 1.801 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.0005282/0.5735, allocations: 376.3 kB / 1.168 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.5736, allocations: 8.922 kB / 1.168 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.973e-05/0.5736, allocations: 30.75 kB / 1.169 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.561e-05/0.5736, allocations: 4.938 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.5737, allocations: 180.2 kB / 1.169 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.5738, allocations: 8.375 kB / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.5738, allocations: 384 / 1.169 GB, free: 1.109 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.574, allocations: 62.23 kB / 1.169 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.574, allocations: 7.875 kB / 1.169 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.574, allocations: 7.969 kB / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.574, allocations: 0 / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.5742, allocations: 39.97 kB / 1.169 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003681/0.5745, allocations: 276.8 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.5747, allocations: 58.55 kB / 1.169 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.895e-05/0.5748, allocations: 24.97 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.5748, allocations: 7.984 kB / 1.169 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.575, allocations: 75.33 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=6): time 3.206e-06/0.575, allocations: 0 / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0003635/0.5754, allocations: 121.5 kB / 1.169 GB, free: 364 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.5754, allocations: 55.41 kB / 1.169 GB, free: 296 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.344e-05/0.5755, allocations: 114.1 kB / 1.17 GB, free: 172 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.5755, allocations: 29.7 kB / 1.17 GB, free: 136 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.27e-05/0.5756, allocations: 84.2 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.5756, allocations: 23.83 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.5756, allocations: 17.72 kB / 1.17 GB, free: 0 / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.5758, allocations: 326.8 kB / 1.17 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/0.5759, allocations: 19.98 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.576, allocations: 55.39 kB / 1.17 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.5762, allocations: 79.33 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.5762, allocations: 0 / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000244/0.5765, allocations: 109.5 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.5765, allocations: 8 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.5765, allocations: 0 / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.5765, allocations: 0 / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.426e-05/0.5766, allocations: 19.98 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.5766, allocations: 0 / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.685e-05/0.5767, allocations: 4.094 kB / 1.17 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.5767, allocations: 8 kB / 1.17 GB, free: 15.34 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 8.064e-05/0.5768, allocations: 125.7 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/0.5768, allocations: 7.953 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002542/0.577, allocations: 98.02 kB / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.5771, allocations: 4 kB / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.5771, allocations: 0 / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.5771, allocations: 0 / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004114/0.5775, allocations: 354.4 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.5775, allocations: 0 / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.859e-05/0.5776, allocations: 11.98 kB / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.5776, allocations: 0 / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.5776, allocations: 0 / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5776, allocations: 0 / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.5776, allocations: 4.312 kB / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.5779, allocations: 207.4 kB / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.081e-05/0.5779, allocations: 85 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.5779, allocations: 0 / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-05/0.578, allocations: 11.98 kB / 1.171 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.494e-05/0.5781, allocations: 11.97 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.5781, allocations: 4 kB / 1.171 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.097e-05/0.5781, allocations: 87.27 kB / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5781, allocations: 0 / 1.171 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002167/0.5784, allocations: 19.94 kB / 1.171 GB, free: 14.23 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.00055/0.5789, allocations: 0.7242 MB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002262/0.5792, allocations: 67.88 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.5792, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.5793, allocations: 31.92 kB / 1.172 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.5795, allocations: 15.92 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.5809, allocations: 1.378 MB / 1.173 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.5812, allocations: 0.6846 MB / 1.174 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.839e-05/0.5812, allocations: 7.984 kB / 1.174 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.313e-05/0.5812, allocations: 15.44 kB / 1.174 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.5813, allocations: 0 / 1.174 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.756/3.338, allocations: 1.755 MB / 1.176 GB, free: 9.496 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.712/13.05, allocations: 9.922 kB / 1.176 GB, free: 9.488 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 & /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=400 --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