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.001098/0.001098, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.402 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 2.42/2.42, allocations: 390.3 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 67.89 kB / 0.8127 GB, free: 14.32 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6389/0.6403, allocations: 140.4 MB / 0.9497 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001804/0.6422, allocations: 0.659 MB / 0.9504 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.6432, allocations: 1.046 MB / 0.9514 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.036e-05/0.6433, allocations: 1.344 kB / 0.9514 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.726e-05/0.6433, allocations: 3.938 kB / 0.9514 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.984e-05/0.6434, allocations: 9.141 kB / 0.9514 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.6436, allocations: 49.48 kB / 0.9515 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.644e-05/0.6437, allocations: 43.36 kB / 0.9515 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.005e-05/0.6438, allocations: 8.062 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.022e-05/0.6439, allocations: 14.98 kB / 0.9515 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.992e-05/0.6439, allocations: 34.98 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.436e-05/0.644, allocations: 4.062 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.306e-05/0.644, allocations: 13.52 kB / 0.9516 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.644, allocations: 6.406 kB / 0.9516 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.226e-05/0.6441, allocations: 20.98 kB / 0.9516 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.6442, allocations: 64.66 kB / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.6442, allocations: 0 / 0.9517 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.864e-06/0.6442, allocations: 3.938 kB / 0.9517 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.6442, allocations: 0 / 0.9517 GB, free: 7.582 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.0004996/0.6447, allocations: 362.3 kB / 0.952 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.6448, allocations: 9.75 kB / 0.952 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.742e-05/0.6448, allocations: 40.14 kB / 0.9521 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.233e-05/0.6448, allocations: 11.78 kB / 0.9521 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.834e-05/0.6449, allocations: 161.9 kB / 0.9522 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.6449, allocations: 2.031 kB / 0.9522 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.645, allocations: 3.594 kB / 0.9522 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001951/0.6452, allocations: 64.16 kB / 0.9523 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.6452, allocations: 3.938 kB / 0.9523 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.6452, allocations: 0 / 0.9523 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.6452, allocations: 1.344 kB / 0.9523 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.6454, allocations: 50.95 kB / 0.9523 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003725/0.6458, allocations: 281.2 kB / 0.9526 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001583/0.6459, allocations: 53.8 kB / 0.9527 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.461e-05/0.646, allocations: 34.33 kB / 0.9527 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.6461, allocations: 5.188 kB / 0.9527 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.6462, allocations: 72.47 kB / 0.9528 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.463e-06/0.6463, allocations: 0.9375 kB / 0.9528 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.000388/0.6467, allocations: 123.4 kB / 0.9529 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.6467, allocations: 55.41 kB / 0.9529 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.289e-05/0.6468, allocations: 110.2 kB / 0.953 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.6468, allocations: 25.7 kB / 0.9531 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.066e-05/0.6468, allocations: 86.83 kB / 0.9531 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/0.6468, allocations: 13.19 kB / 0.9532 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.6469, allocations: 28.45 kB / 0.9532 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.653e-05/0.6469, allocations: 316.3 kB / 0.9535 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.867e-05/0.647, allocations: 32.41 kB / 0.9535 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.867e-05/0.6471, allocations: 51.69 kB / 0.9536 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.6473, allocations: 79 kB / 0.9536 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.6474, allocations: 3.938 kB / 0.9536 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002394/0.6476, allocations: 99.64 kB / 0.9537 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.6476, allocations: 5.156 kB / 0.9537 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.6476, allocations: 1.656 kB / 0.9537 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.6477, allocations: 1.188 kB / 0.9538 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.6478, allocations: 14.14 kB / 0.9538 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.6478, allocations: 5.594 kB / 0.9538 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.698e-05/0.6479, allocations: 12.14 kB / 0.9538 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.669e-06/0.6479, allocations: 6.688 kB / 0.9538 GB, free: 5.496 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 6.015e-05/0.6479, allocations: 121.2 kB / 0.9539 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.282e-05/0.648, allocations: 6.25 kB / 0.9539 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002579/0.6482, allocations: 100.9 kB / 0.954 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.6482, allocations: 1.344 kB / 0.954 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.6482, allocations: 7.938 kB / 0.954 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.6482, allocations: 3.984 kB / 0.954 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003473/0.6486, allocations: 352.7 kB / 0.9544 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.6486, allocations: 0 / 0.9544 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.807e-05/0.6487, allocations: 10.42 kB / 0.9544 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.6487, allocations: 1.375 kB / 0.9544 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.6487, allocations: 1.469 kB / 0.9544 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.6487, allocations: 4 kB / 0.9544 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.6487, allocations: 0 / 0.9544 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.649, allocations: 205 kB / 0.9546 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.719e-05/0.649, allocations: 78.08 kB / 0.9546 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.649, allocations: 1.219 kB / 0.9546 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.758e-05/0.6491, allocations: 13.52 kB / 0.9547 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.6492, allocations: 14.58 kB / 0.9547 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.6492, allocations: 1.375 kB / 0.9547 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.641e-05/0.6492, allocations: 80.91 kB / 0.9547 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6492, allocations: 0 / 0.9547 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002478/0.6495, allocations: 21.38 kB / 0.9548 GB, free: 4.559 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.0004594/0.6499, allocations: 0.7351 MB / 0.9555 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002801/0.6502, allocations: 65.06 kB / 0.9555 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.6502, allocations: 0 / 0.9555 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.6504, allocations: 31 kB / 0.9556 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.6506, allocations: 22.16 kB / 0.9556 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.6519, allocations: 1.363 MB / 0.9569 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.6521, allocations: 0.692 MB / 0.9576 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.413e-05/0.6521, allocations: 2.562 kB / 0.9576 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.147e-05/0.6522, allocations: 15.38 kB / 0.9576 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6522, allocations: 0 / 0.9576 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.6708, allocations: 1.727 MB / 0.9593 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.555/8.226, allocations: 8.266 kB / 0.9593 GB, free: 0.7969 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