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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.008232/0.008232, allocations: 103 kB / 15.88 MB, free: 6.328 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.002134/0.002134, allocations: 198.8 kB / 16.79 MB, free: 6.254 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.452/1.452, allocations: 222.9 MB / 240.5 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.394/2.394, allocations: 390.2 MB / 0.6649 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 67.88 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7309/0.7324, allocations: 140.3 MB / 0.9496 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002292/0.7348, allocations: 0.7282 MB / 0.9503 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.7362, allocations: 1.052 MB / 0.9513 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.828e-05/0.7363, allocations: 1.375 kB / 0.9513 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.695e-05/0.7363, allocations: 0 / 0.9513 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.543e-05/0.7364, allocations: 5.312 kB / 0.9513 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.7367, allocations: 40.08 kB / 0.9514 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.551e-05/0.7368, allocations: 42.98 kB / 0.9514 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.7369, allocations: 4.125 kB / 0.9514 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.898e-05/0.737, allocations: 26.78 kB / 0.9514 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.604e-05/0.737, allocations: 22.78 kB / 0.9515 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.599e-05/0.7371, allocations: 2.75 kB / 0.9515 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.898e-05/0.7371, allocations: 16.23 kB / 0.9515 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.124e-05/0.7372, allocations: 5.375 kB / 0.9515 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.767e-05/0.7372, allocations: 21.36 kB / 0.9515 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.7373, allocations: 37.55 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7373, allocations: 0 / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.794e-06/0.7373, allocations: 0 / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.7373, allocations: 5.312 kB / 0.9515 GB, free: 7.621 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.0005648/0.7379, allocations: 366.1 kB / 0.9519 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.738, allocations: 8.25 kB / 0.9519 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.542e-05/0.738, allocations: 15.58 kB / 0.9519 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.7381, allocations: 171.1 kB / 0.9521 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.7382, allocations: 1.75 kB / 0.9521 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.7382, allocations: 3.125 kB / 0.9521 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.7384, allocations: 66.72 kB / 0.9522 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.7384, allocations: 1.562 kB / 0.9522 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.7384, allocations: 3.938 kB / 0.9522 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.7384, allocations: 1.375 kB / 0.9522 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.7386, allocations: 47.27 kB / 0.9522 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003827/0.739, allocations: 273.3 kB / 0.9525 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.7392, allocations: 61.86 kB / 0.9525 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.322e-05/0.7393, allocations: 30.33 kB / 0.9526 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.7393, allocations: 1.344 kB / 0.9526 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.7395, allocations: 75.81 kB / 0.9526 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.533e-06/0.7395, allocations: 5.594 kB / 0.9526 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004063/0.7399, allocations: 115 kB / 0.9527 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.74, allocations: 55.41 kB / 0.9528 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.052e-05/0.7401, allocations: 106.5 kB / 0.9529 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.7401, allocations: 29.69 kB / 0.9529 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.265e-05/0.7401, allocations: 85.64 kB / 0.953 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.7401, allocations: 22.81 kB / 0.953 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/0.7402, allocations: 22.98 kB / 0.953 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.322e-05/0.7402, allocations: 316.1 kB / 0.9534 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.448e-05/0.7403, allocations: 29.47 kB / 0.9534 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.7404, allocations: 47.23 kB / 0.9534 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000188/0.7406, allocations: 83.33 kB / 0.9535 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.7406, allocations: 0 / 0.9535 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002629/0.7409, allocations: 112 kB / 0.9536 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.741, allocations: 5.031 kB / 0.9536 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.741, allocations: 1.469 kB / 0.9536 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.741, allocations: 1.469 kB / 0.9536 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.7411, allocations: 13.61 kB / 0.9536 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.7411, allocations: 1.281 kB / 0.9536 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.257e-05/0.7412, allocations: 8.797 kB / 0.9536 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.7412, allocations: 3.219 kB / 0.9536 GB, free: 5.578 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.916e-05/0.7413, allocations: 122.1 kB / 0.9538 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.311e-05/0.7413, allocations: 9.156 kB / 0.9538 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002728/0.7416, allocations: 105.3 kB / 0.9539 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.7416, allocations: 0 / 0.9539 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.7416, allocations: 1.688 kB / 0.9539 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.7416, allocations: 0 / 0.9539 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003697/0.742, allocations: 359.8 kB / 0.9542 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.742, allocations: 3.984 kB / 0.9542 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.781e-05/0.7421, allocations: 10.36 kB / 0.9542 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.7421, allocations: 1.156 kB / 0.9542 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.7421, allocations: 5.094 kB / 0.9542 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.7421, allocations: 0 / 0.9542 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.7421, allocations: 1.25 kB / 0.9542 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.7424, allocations: 200.6 kB / 0.9544 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.109e-05/0.7424, allocations: 78.48 kB / 0.9545 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.7424, allocations: 5.219 kB / 0.9545 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.686e-05/0.7425, allocations: 8.172 kB / 0.9545 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.338e-05/0.7426, allocations: 6.703 kB / 0.9545 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.7426, allocations: 6.812 kB / 0.9545 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.694e-05/0.7426, allocations: 84.09 kB / 0.9546 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7426, allocations: 0 / 0.9546 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002497/0.7429, allocations: 17.97 kB / 0.9546 GB, free: 4.637 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.0001424/0.743, allocations: 106 kB / 0.9547 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002535/0.7433, allocations: 68.48 kB / 0.9548 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.7433, allocations: 0 / 0.9548 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.7434, allocations: 35.19 kB / 0.9548 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.7437, allocations: 12.5 kB / 0.9548 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003213/0.7441, allocations: 168.4 kB / 0.955 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.7442, allocations: 0.6812 MB / 0.9557 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.778e-05/0.7442, allocations: 10.44 kB / 0.9557 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.7442, allocations: 0 / 0.9557 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of Templates: time 0.002285/0.7465, allocations: 0.8476 MB / 0.9565 GB, free: 3.176 MB / 0.7169 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