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.01138/0.01138, allocations: 104.1 kB / 15.74 MB, free: 6.059 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.002675/0.002675, allocations: 197.7 kB / 16.68 MB, free: 5.969 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.19 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.294/2.294, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 59.91 kB / 0.9508 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.138/1.14, allocations: 140.4 MB / 1.088 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001953/1.142, allocations: 0.6614 MB / 1.089 GB, free: 5.086 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001671/1.144, allocations: 1.052 MB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.557e-05/1.144, allocations: 0 / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.582e-05/1.144, allocations: 2.016 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.636e-05/1.144, allocations: 8.391 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000364/1.144, allocations: 43.16 kB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001478/1.145, allocations: 40.38 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/1.145, allocations: 19.27 kB / 1.09 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.845e-05/1.145, allocations: 26.02 kB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.309e-05/1.145, allocations: 20.28 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.856e-05/1.145, allocations: 4.094 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/1.145, allocations: 17.72 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.134e-05/1.145, allocations: 11.98 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.672e-05/1.145, allocations: 20.2 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001859/1.145, allocations: 52.42 kB / 1.09 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/1.145, allocations: 8.547 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.255e-06/1.145, allocations: 1.031 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.933e-06/1.145, allocations: 4 kB / 1.09 GB, free: 4.172 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.0006466/1.146, allocations: 357.2 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/1.146, allocations: 10.47 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/1.146, allocations: 3 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.807e-05/1.146, allocations: 171.8 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/1.146, allocations: 5.344 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/1.146, allocations: 8.375 kB / 1.09 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/1.146, allocations: 73.94 kB / 1.09 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/1.146, allocations: 0.9844 kB / 1.09 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/1.146, allocations: 4.969 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/1.146, allocations: 0 / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/1.147, allocations: 38.55 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004636/1.147, allocations: 279.1 kB / 1.091 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/1.147, allocations: 60.97 kB / 1.091 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/1.147, allocations: 29.3 kB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/1.147, allocations: 0.5 kB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002121/1.148, allocations: 76.14 kB / 1.091 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/1.148, allocations: 0 / 1.091 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004101/1.148, allocations: 126.3 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/1.148, allocations: 53.64 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.151e-05/1.148, allocations: 104.4 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/1.148, allocations: 30.45 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.338e-05/1.148, allocations: 82.75 kB / 1.091 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/1.148, allocations: 23.44 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.531e-05/1.148, allocations: 21.56 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.762e-05/1.148, allocations: 318.2 kB / 1.092 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-05/1.149, allocations: 27.06 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/1.149, allocations: 47.55 kB / 1.092 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/1.149, allocations: 84.5 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.149, allocations: 1.094 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002576/1.149, allocations: 110.5 kB / 1.092 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/1.149, allocations: 5.406 kB / 1.092 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/1.149, allocations: 4.906 kB / 1.092 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/1.149, allocations: 5.656 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/1.149, allocations: 18.34 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/1.149, allocations: 1.734 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.014e-05/1.149, allocations: 7.562 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/1.149, allocations: 2.031 kB / 1.092 GB, free: 2.285 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.994e-05/1.149, allocations: 123.6 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.243e-05/1.149, allocations: 2.344 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002823/1.15, allocations: 104.9 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/1.15, allocations: 0.7812 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.15, allocations: 0.7031 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/1.15, allocations: 0.8438 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003929/1.15, allocations: 359.1 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/1.15, allocations: 1.062 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.632e-05/1.15, allocations: 10.11 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/1.15, allocations: 0.6562 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/1.15, allocations: 1.547 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/1.15, allocations: 0.75 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/1.15, allocations: 4 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002619/1.151, allocations: 200.4 kB / 1.093 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.268e-05/1.151, allocations: 82.61 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/1.151, allocations: 1.734 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.6e-05/1.151, allocations: 15.5 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.855e-05/1.151, allocations: 5.203 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/1.151, allocations: 6.312 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.398e-05/1.151, allocations: 86.14 kB / 1.093 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/1.151, allocations: 0 / 1.093 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002434/1.151, allocations: 18.3 kB / 1.093 GB, free: 1.418 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.0001772/1.151, allocations: 104.2 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002924/1.152, allocations: 66.11 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/1.152, allocations: 0.7188 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001174/1.152, allocations: 28.88 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/1.152, allocations: 16.64 kB / 1.093 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003458/1.152, allocations: 129.2 kB / 1.093 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/1.153, allocations: 0.6851 MB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.268e-05/1.153, allocations: 7.375 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.781e-05/1.153, allocations: 15.11 kB / 1.094 GB, free: 476 kB / 0.8575 GB Notification: Performance of SimCode: time 1.9e-07/1.153, allocations: 4.938 kB / 1.094 GB, free: 472 kB / 0.8575 GB Notification: Performance of Templates: time 0.003734/1.156, allocations: 0.7932 MB / 1.095 GB, free: 376 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/jenkins/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