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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_10_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_10_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.0009691/0.0009691, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001091/0.001091, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 223.3 MB / 240 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.638/2.638, allocations: 437.7 MB / 0.7117 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003897, allocations: 12 kB / 0.8722 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8104/0.8108, allocations: 153.8 MB / 1.022 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0009722/0.8118, allocations: 396.8 kB / 1.023 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.8131, allocations: 1.027 MB / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.453e-05/0.8132, allocations: 0 / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.929e-05/0.8132, allocations: 3.938 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.811e-05/0.8133, allocations: 0 / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.8135, allocations: 35.89 kB / 1.024 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.937e-05/0.8136, allocations: 47.8 kB / 1.024 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.054e-05/0.8137, allocations: 11.98 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.535e-05/0.8138, allocations: 15.92 kB / 1.024 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.771e-05/0.8139, allocations: 19.92 kB / 1.024 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.35e-05/0.8139, allocations: 0 / 1.024 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.435e-05/0.8139, allocations: 19.97 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.108e-05/0.814, allocations: 7.984 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.783e-05/0.814, allocations: 33.7 kB / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.939e-05/0.8141, allocations: 27.94 kB / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.8141, allocations: 0 / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.477e-06/0.8141, allocations: 0 / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.8142, allocations: 7.938 kB / 1.024 GB, free: 14.38 MB / 0.7794 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.0005425/0.8147, allocations: 369.1 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.8148, allocations: 12.03 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.8148, allocations: 7.891 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.8149, allocations: 163.1 kB / 1.025 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.815, allocations: 11.98 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.815, allocations: 7.984 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002004/0.8152, allocations: 69.61 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.8152, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.8152, allocations: 4 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.8152, allocations: 0 / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001833/0.8154, allocations: 59.89 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004426/0.8159, allocations: 272.8 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.816, allocations: 62.55 kB / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.8161, allocations: 36.95 kB / 1.025 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.8162, allocations: 0 / 1.025 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002232/0.8164, allocations: 87.31 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.183e-06/0.8164, allocations: 0 / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0004033/0.8168, allocations: 137.6 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.8169, allocations: 51.41 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.481e-05/0.817, allocations: 101.9 kB / 1.025 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.817, allocations: 25.7 kB / 1.025 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.773e-05/0.8171, allocations: 88.12 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.8171, allocations: 23.75 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.8171, allocations: 4 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.8172, allocations: 314.8 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.395e-05/0.8173, allocations: 31.97 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.8174, allocations: 59.34 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.962e-05/0.8176, allocations: 35.94 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.8176, allocations: 0 / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002432/0.8178, allocations: 117.6 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.8178, allocations: 5.094 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.8178, allocations: 4 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.8179, allocations: 0 / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.818, allocations: 23.92 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.818, allocations: 4 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.455e-05/0.8181, allocations: 11.98 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.8181, allocations: 4 kB / 1.026 GB, free: 11.99 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 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.453e-05/0.8182, allocations: 121.8 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.25e-05/0.8182, allocations: 7.906 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002755/0.8185, allocations: 118 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.8185, allocations: 0 / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.8185, allocations: 0.5625 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.8185, allocations: 3.938 kB / 1.026 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004103/0.8189, allocations: 366.5 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.8189, allocations: 0 / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.202e-05/0.819, allocations: 11.98 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.819, allocations: 0 / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.819, allocations: 0 / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.819, allocations: 7.938 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.819, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002742/0.8193, allocations: 203.5 kB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.96e-05/0.8194, allocations: 89 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.8194, allocations: 3.984 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.698e-05/0.8195, allocations: 15.98 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.8195, allocations: 11.98 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.8196, allocations: 0 / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.988e-05/0.8196, allocations: 83.28 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.773e-06/0.8196, allocations: 0 / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002412/0.8199, allocations: 15.94 kB / 1.027 GB, free: 10.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001568/0.82, allocations: 103.2 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002459/0.8203, allocations: 75.89 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.8203, allocations: 0 / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.8204, allocations: 39.91 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.8207, allocations: 16.14 kB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000338/0.821, allocations: 142.6 kB / 1.027 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.8213, allocations: 0.6848 MB / 1.028 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.37e-05/0.8213, allocations: 4.188 kB / 1.028 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.204e-05/0.8213, allocations: 11.44 kB / 1.028 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.8214, allocations: 4 kB / 1.028 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of Templates: time 0.003052/0.8244, allocations: 0.6827 MB / 1.029 GB, free: 9.035 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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