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: 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.001348/0.001348, allocations: 105.6 kB / 16.41 MB, free: 6.512 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.001292/0.001292, allocations: 187 kB / 17.34 MB, free: 5.742 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.13 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.519/2.519, allocations: 437 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.91 kB / 1.019 GB, free: 9.383 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8169/0.8182, allocations: 151.6 MB / 1.167 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002264/0.8205, allocations: 0.6698 MB / 1.168 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001552/0.8221, allocations: 1.053 MB / 1.169 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.074e-05/0.8222, allocations: 0 / 1.169 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.837e-05/0.8222, allocations: 7.938 kB / 1.169 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.121e-05/0.8223, allocations: 7.938 kB / 1.169 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000337/0.8227, allocations: 39.89 kB / 1.169 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001192/0.8228, allocations: 51.78 kB / 1.169 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.8229, allocations: 8 kB / 1.169 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.349e-05/0.823, allocations: 19.97 kB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.01e-05/0.8231, allocations: 27.86 kB / 1.169 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.8231, allocations: 4 kB / 1.169 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.07e-05/0.8232, allocations: 15.98 kB / 1.169 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.8232, allocations: 19.98 kB / 1.169 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.102e-05/0.8233, allocations: 15.92 kB / 1.169 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.8234, allocations: 55.78 kB / 1.169 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.8234, allocations: 0 / 1.169 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.094e-06/0.8234, allocations: 0 / 1.169 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.393e-05/0.8235, allocations: 4 kB / 1.169 GB, free: 1.793 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.0006804/0.8241, allocations: 363.2 kB / 1.17 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.8242, allocations: 12.92 kB / 1.17 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.8242, allocations: 12.84 kB / 1.17 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.8244, allocations: 164.4 kB / 1.17 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.8244, allocations: 8.359 kB / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.405e-05/0.8244, allocations: 4.375 kB / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.8247, allocations: 62.23 kB / 1.17 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.8247, allocations: 192 / 1.17 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.8247, allocations: 7.922 kB / 1.17 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.8247, allocations: 0 / 1.17 GB, free: 1.082 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.8249, allocations: 51.89 kB / 1.17 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004985/0.8254, allocations: 270.7 kB / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.8256, allocations: 58.48 kB / 1.17 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.864e-05/0.8257, allocations: 32.95 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.988e-05/0.8257, allocations: 4 kB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002236/0.826, allocations: 71.33 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=6): time 1.733e-06/0.826, allocations: 0 / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0004223/0.8264, allocations: 121.5 kB / 1.17 GB, free: 416 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.8265, allocations: 63.41 kB / 1.17 GB, free: 340 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.957e-05/0.8266, allocations: 101.8 kB / 1.171 GB, free: 228 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.8266, allocations: 33.64 kB / 1.171 GB, free: 188 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.736e-05/0.8266, allocations: 88.12 kB / 1.171 GB, free: 96 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.8267, allocations: 19.81 kB / 1.171 GB, free: 76 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-05/0.8267, allocations: 17.72 kB / 1.171 GB, free: 52 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.8269, allocations: 322.8 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.476e-05/0.827, allocations: 23.98 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.8271, allocations: 51.34 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.8273, allocations: 83.33 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.8273, allocations: 0 / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002838/0.8276, allocations: 109.4 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.8277, allocations: 8 kB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.8277, allocations: 0 / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.8277, allocations: 0 / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.8278, allocations: 15.98 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.8278, allocations: 4.094 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.904e-05/0.8279, allocations: 4 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.8279, allocations: 7.984 kB / 1.171 GB, free: 15.39 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 0.0001165/0.828, allocations: 123.1 kB / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.36e-05/0.8281, allocations: 0 / 1.171 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002911/0.8284, allocations: 102.5 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.8284, allocations: 0 / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.8284, allocations: 4.062 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.8284, allocations: 8 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005037/0.8289, allocations: 354.3 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.8289, allocations: 0 / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.482e-05/0.829, allocations: 11.98 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.829, allocations: 0 / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.829, allocations: 4 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.829, allocations: 0 / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.829, allocations: 4 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.8293, allocations: 195.4 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.582e-05/0.8294, allocations: 84.95 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.8294, allocations: 4 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.8295, allocations: 11.98 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.8296, allocations: 4 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.8296, allocations: 7.938 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.085e-05/0.8297, allocations: 91.2 kB / 1.172 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8297, allocations: 0 / 1.172 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002473/0.8299, allocations: 8 kB / 1.172 GB, free: 14.29 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.0001717/0.8301, allocations: 111.2 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002786/0.8304, allocations: 67.92 kB / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.8304, allocations: 0 / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.8305, allocations: 31.98 kB / 1.173 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.8308, allocations: 7.984 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004215/0.8312, allocations: 164.1 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.8316, allocations: 0.6808 MB / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.561e-05/0.8316, allocations: 19.44 kB / 1.173 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/0.8316, allocations: 0 / 1.173 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of Templates: time 0.002683/0.8343, allocations: 0.8634 MB / 1.174 GB, free: 12.29 MB / 0.9044 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/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