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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00203/0.00203, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001906/0.001906, allocations: 186.2 kB / 17.34 MB, free: 5.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.388/1.388, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.292/2.292, allocations: 390.2 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 71.88 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9508/0.9523, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001757/0.9541, allocations: 0.662 MB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001231/0.9553, allocations: 1.053 MB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.353e-05/0.9554, allocations: 1.281 kB / 1.09 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.66e-05/0.9554, allocations: 4.453 kB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.739e-05/0.9555, allocations: 6.156 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.9558, allocations: 37.28 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.072e-05/0.9559, allocations: 52.47 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.399e-05/0.956, allocations: 7.938 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.245e-05/0.9561, allocations: 26.38 kB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.184e-05/0.9561, allocations: 19.53 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.589e-05/0.9561, allocations: 3.531 kB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.713e-05/0.9562, allocations: 18.11 kB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.956e-05/0.9562, allocations: 12.78 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.315e-05/0.9563, allocations: 18.7 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.9564, allocations: 53.5 kB / 1.091 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.9564, allocations: 4 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.783e-06/0.9564, allocations: 0.9375 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.909e-06/0.9564, allocations: 3.938 kB / 1.091 GB, free: 4.188 MB / 0.8575 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.0005058/0.9569, allocations: 362.1 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.957, allocations: 14.23 kB / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.633e-05/0.957, allocations: 7.062 kB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.852e-05/0.9571, allocations: 171.8 kB / 1.091 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.9571, allocations: 5.812 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.9571, allocations: 7.469 kB / 1.091 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000196/0.9573, allocations: 61.72 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.9574, allocations: 1.219 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.9574, allocations: 4.453 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.9574, allocations: 0.875 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.9576, allocations: 43.48 kB / 1.091 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003616/0.958, allocations: 277.6 kB / 1.091 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.9581, allocations: 57.42 kB / 1.092 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.9582, allocations: 32.47 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.9583, allocations: 1.594 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.9585, allocations: 75.44 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.9585, allocations: 4.906 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004468/0.9589, allocations: 118.6 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.959, allocations: 52.72 kB / 1.092 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.341e-05/0.959, allocations: 105.4 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.9591, allocations: 29.7 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.097e-05/0.9591, allocations: 86.69 kB / 1.092 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.9591, allocations: 20.38 kB / 1.092 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.095e-05/0.9592, allocations: 20.36 kB / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.994e-05/0.9592, allocations: 314 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.9593, allocations: 23.53 kB / 1.092 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.9594, allocations: 58.72 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.9596, allocations: 84.86 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.9597, allocations: 1.516 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002664/0.9599, allocations: 110.3 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.9599, allocations: 5.656 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.96, allocations: 0.75 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.96, allocations: 1.469 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.9601, allocations: 13.56 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.9601, allocations: 6.766 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.735e-05/0.9602, allocations: 11.38 kB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.9602, allocations: 6.688 kB / 1.093 GB, free: 2.297 MB / 0.8575 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.535e-05/0.9603, allocations: 123.4 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.336e-05/0.9603, allocations: 2.375 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002872/0.9606, allocations: 104.6 kB / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.9606, allocations: 1.312 kB / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.9606, allocations: 0 / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.9606, allocations: 1.094 kB / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003933/0.961, allocations: 363.3 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.961, allocations: 0.7188 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.987e-05/0.9611, allocations: 9.266 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.9611, allocations: 0.6875 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.9611, allocations: 2.281 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.9611, allocations: 0 / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.9611, allocations: 0.7812 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.9614, allocations: 199.5 kB / 1.093 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/0.9614, allocations: 82.95 kB / 1.093 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.9615, allocations: 1.547 kB / 1.093 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.9616, allocations: 9.156 kB / 1.094 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.99e-05/0.9616, allocations: 8.312 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.9616, allocations: 6 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.773e-05/0.9617, allocations: 85.55 kB / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9617, allocations: 0 / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000252/0.9619, allocations: 19.48 kB / 1.094 GB, free: 1.434 MB / 0.8575 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.0001208/0.9621, allocations: 104.5 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002646/0.9623, allocations: 65.55 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.9623, allocations: 0 / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.9625, allocations: 34.14 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.9627, allocations: 5.344 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003061/0.9631, allocations: 167.9 kB / 1.094 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.9632, allocations: 0.681 MB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.693e-05/0.9632, allocations: 11.16 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of SimCode: time 2.7e-07/0.9632, allocations: 0.9375 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of Templates: time 0.002502/0.9657, allocations: 0.8689 MB / 1.095 GB, free: 392 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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