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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001189/0.001189, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001226/0.001226, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.258/1.258, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.147/2.147, allocations: 390.2 MB / 0.6643 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 67.89 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5566/0.5578, allocations: 140.4 MB / 0.9491 GB, free: 9.254 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001356/0.5592, allocations: 0.7246 MB / 0.9498 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007955/0.56, allocations: 1.042 MB / 0.9508 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.576e-05/0.5601, allocations: 4 kB / 0.9508 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.674e-05/0.5601, allocations: 7.875 kB / 0.9508 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.212e-05/0.5602, allocations: 5.312 kB / 0.9508 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000167/0.5603, allocations: 37.7 kB / 0.9508 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.232e-05/0.5604, allocations: 42.55 kB / 0.9509 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.803e-05/0.5605, allocations: 11.98 kB / 0.9509 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.58e-05/0.5605, allocations: 14.75 kB / 0.9509 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.727e-05/0.5606, allocations: 26.83 kB / 0.9509 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.5606, allocations: 2.375 kB / 0.9509 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.984e-05/0.5606, allocations: 21.14 kB / 0.9509 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.297e-05/0.5606, allocations: 5.438 kB / 0.9509 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.5607, allocations: 19.92 kB / 0.951 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.388e-05/0.5608, allocations: 53.78 kB / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.5608, allocations: 0 / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.61e-07/0.5608, allocations: 0 / 0.951 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.695e-06/0.5608, allocations: 0 / 0.951 GB, free: 7.691 MB / 0.7169 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.0003942/0.5612, allocations: 374 kB / 0.9514 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.5612, allocations: 9.656 kB / 0.9514 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.333e-05/0.5612, allocations: 31.94 kB / 0.9514 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.405e-05/0.5613, allocations: 6.938 kB / 0.9514 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.048e-05/0.5613, allocations: 168 kB / 0.9516 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-06/0.5613, allocations: 384 / 0.9516 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.5614, allocations: 8.094 kB / 0.9516 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001559/0.5615, allocations: 59.28 kB / 0.9516 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.5615, allocations: 3.938 kB / 0.9516 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.5615, allocations: 13.39 kB / 0.9517 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.5615, allocations: 0 / 0.9517 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.5617, allocations: 40.08 kB / 0.9517 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002843/0.562, allocations: 280.8 kB / 0.952 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.5621, allocations: 61.92 kB / 0.952 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.804e-05/0.5622, allocations: 30.56 kB / 0.9521 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.5623, allocations: 1.406 kB / 0.9521 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001441/0.5624, allocations: 72.09 kB / 0.9521 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.5624, allocations: 5.188 kB / 0.9521 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0003419/0.5628, allocations: 122.4 kB / 0.9522 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.926e-05/0.5628, allocations: 52.69 kB / 0.9523 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.475e-05/0.5628, allocations: 109 kB / 0.9524 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.835e-06/0.5629, allocations: 27.3 kB / 0.9524 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.825e-05/0.5629, allocations: 85.73 kB / 0.9525 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.311e-05/0.5629, allocations: 17.25 kB / 0.9525 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.322e-05/0.5629, allocations: 24.42 kB / 0.9526 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.147e-05/0.563, allocations: 320 kB / 0.9529 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.986e-05/0.5631, allocations: 26.06 kB / 0.9529 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.255e-05/0.5632, allocations: 55.3 kB / 0.9529 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.5633, allocations: 77.69 kB / 0.953 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5633, allocations: 5.797 kB / 0.953 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002193/0.5636, allocations: 101.8 kB / 0.9531 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.5636, allocations: 6.156 kB / 0.9531 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.5636, allocations: 1.406 kB / 0.9531 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.235e-06/0.5636, allocations: 5.375 kB / 0.9531 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.726e-05/0.5637, allocations: 13.83 kB / 0.9531 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.5637, allocations: 1.594 kB / 0.9531 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.101e-05/0.5638, allocations: 16.11 kB / 0.9532 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.5638, allocations: 2.625 kB / 0.9532 GB, free: 5.598 MB / 0.7169 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 4.453e-05/0.5638, allocations: 118.1 kB / 0.9533 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.202e-05/0.5638, allocations: 10.55 kB / 0.9533 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002419/0.5641, allocations: 107.5 kB / 0.9534 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.5641, allocations: 1.125 kB / 0.9534 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.5641, allocations: 1.219 kB / 0.9534 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.5641, allocations: 0 / 0.9534 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003063/0.5644, allocations: 355.6 kB / 0.9537 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.5644, allocations: 1.188 kB / 0.9537 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.433e-05/0.5645, allocations: 9.906 kB / 0.9537 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.5645, allocations: 1.5 kB / 0.9537 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.5645, allocations: 3.984 kB / 0.9537 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5645, allocations: 1.281 kB / 0.9537 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.5645, allocations: 0 / 0.9537 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002217/0.5648, allocations: 193.1 kB / 0.9539 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.454e-05/0.5648, allocations: 86.16 kB / 0.954 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.5648, allocations: 4.844 kB / 0.954 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.339e-05/0.5649, allocations: 9.672 kB / 0.954 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.082e-05/0.5649, allocations: 18.19 kB / 0.954 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.5649, allocations: 1.906 kB / 0.954 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.035e-05/0.565, allocations: 88.2 kB / 0.9541 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.565, allocations: 0 / 0.9541 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002196/0.5652, allocations: 17.72 kB / 0.9541 GB, free: 4.652 MB / 0.7169 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.0003951/0.5656, allocations: 0.7251 MB / 0.9548 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002102/0.5658, allocations: 64.77 kB / 0.9549 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.5658, allocations: 4.188 kB / 0.9549 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.724e-05/0.5659, allocations: 31.53 kB / 0.9549 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002206/0.5662, allocations: 11.75 kB / 0.955 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001007/0.5672, allocations: 1.374 MB / 0.9563 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.876e-05/0.5673, allocations: 0.6814 MB / 0.957 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.711e-05/0.5673, allocations: 10.34 kB / 0.957 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.884e-05/0.5673, allocations: 15.12 kB / 0.957 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of SimCode: time 7.02e-07/0.5673, allocations: 0 / 0.957 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9405/1.508, allocations: 1.531 MB / 0.9585 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/1.508, allocations: 203.3 kB / 0.9587 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.663/4.171, allocations: 1.062 kB / 0.9587 GB, free: 0.8242 MB / 0.7169 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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