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.001223/0.001223, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001621/0.001622, allocations: 188.3 kB / 16.13 MB, free: 6.645 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.498/1.498, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.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.47/2.47, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 71.91 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.872/0.8742, allocations: 140.4 MB / 0.9489 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002138/0.8764, allocations: 0.7201 MB / 0.9496 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001216/0.8777, allocations: 1.054 MB / 0.9507 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.951e-05/0.8777, allocations: 4 kB / 0.9507 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.526e-05/0.8777, allocations: 0 / 0.9507 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.438e-05/0.8778, allocations: 9.219 kB / 0.9507 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.8781, allocations: 32.91 kB / 0.9507 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.751e-05/0.8782, allocations: 50.22 kB / 0.9508 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.976e-05/0.8783, allocations: 7.938 kB / 0.9508 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.025e-05/0.8783, allocations: 12.36 kB / 0.9508 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.277e-05/0.8784, allocations: 25.31 kB / 0.9508 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.8784, allocations: 6.812 kB / 0.9508 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.76e-05/0.8785, allocations: 8.438 kB / 0.9508 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.002e-05/0.8785, allocations: 17.25 kB / 0.9508 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.468e-05/0.8786, allocations: 17.86 kB / 0.9508 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.8787, allocations: 52.47 kB / 0.9509 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.8787, allocations: 3.938 kB / 0.9509 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.432e-06/0.8787, allocations: 0 / 0.9509 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.8787, allocations: 0 / 0.9509 GB, free: 7.602 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.0005769/0.8793, allocations: 366.5 kB / 0.9512 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.8793, allocations: 8.875 kB / 0.9513 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.669e-05/0.8794, allocations: 8.375 kB / 0.9513 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.968e-05/0.8795, allocations: 169.8 kB / 0.9514 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.8795, allocations: 9.828 kB / 0.9514 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.8795, allocations: 3.188 kB / 0.9514 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.8798, allocations: 63.47 kB / 0.9515 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.8798, allocations: 192 / 0.9515 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.8798, allocations: 5.25 kB / 0.9515 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.443e-06/0.8798, allocations: 4 kB / 0.9515 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.88, allocations: 40.59 kB / 0.9515 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004241/0.8805, allocations: 273.5 kB / 0.9518 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.8806, allocations: 65.64 kB / 0.9519 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.648e-05/0.8807, allocations: 30.7 kB / 0.9519 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.8808, allocations: 5.438 kB / 0.9519 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002075/0.881, allocations: 67.89 kB / 0.952 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.881, allocations: 0 / 0.952 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004136/0.8814, allocations: 123.2 kB / 0.9521 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.8815, allocations: 52.78 kB / 0.9521 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.679e-05/0.8815, allocations: 113 kB / 0.9522 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.8815, allocations: 27.08 kB / 0.9523 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.341e-05/0.8816, allocations: 89.41 kB / 0.9524 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.8816, allocations: 18.5 kB / 0.9524 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.952e-05/0.8816, allocations: 19.19 kB / 0.9524 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.981e-05/0.8817, allocations: 324.1 kB / 0.9527 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.804e-05/0.8818, allocations: 21.73 kB / 0.9527 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.8819, allocations: 47.88 kB / 0.9528 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.8821, allocations: 86.33 kB / 0.9529 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.8821, allocations: 3.938 kB / 0.9529 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000245/0.8824, allocations: 106.9 kB / 0.953 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.8824, allocations: 6.125 kB / 0.953 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.8824, allocations: 1.156 kB / 0.953 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.8824, allocations: 9.094 kB / 0.953 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.8825, allocations: 14.3 kB / 0.953 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.8826, allocations: 5.703 kB / 0.953 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.303e-05/0.8826, allocations: 4.094 kB / 0.953 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.8826, allocations: 6.828 kB / 0.953 GB, free: 5.551 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.447e-05/0.8827, allocations: 117.8 kB / 0.9531 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/0.8827, allocations: 6.906 kB / 0.9531 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002609/0.883, allocations: 108.7 kB / 0.9532 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.883, allocations: 0 / 0.9532 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.883, allocations: 1.312 kB / 0.9532 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.883, allocations: 0 / 0.9532 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000373/0.8834, allocations: 351.8 kB / 0.9536 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.8834, allocations: 0 / 0.9536 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.96e-05/0.8835, allocations: 11.14 kB / 0.9536 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.8835, allocations: 4.047 kB / 0.9536 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.8835, allocations: 5.516 kB / 0.9536 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.8835, allocations: 0 / 0.9536 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.8835, allocations: 0 / 0.9536 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.8838, allocations: 198.5 kB / 0.9538 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.404e-05/0.8838, allocations: 78.92 kB / 0.9538 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.8838, allocations: 8 kB / 0.9539 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.387e-05/0.8839, allocations: 12.55 kB / 0.9539 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.884, allocations: 6.875 kB / 0.9539 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.884, allocations: 10.55 kB / 0.9539 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.526e-05/0.884, allocations: 83.53 kB / 0.954 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.884, allocations: 0 / 0.954 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002372/0.8843, allocations: 14.56 kB / 0.954 GB, free: 4.617 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.0001393/0.8844, allocations: 110.8 kB / 0.9541 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000251/0.8847, allocations: 65.33 kB / 0.9541 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.8847, allocations: 0 / 0.9541 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.8848, allocations: 27.05 kB / 0.9542 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.8851, allocations: 15.89 kB / 0.9542 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003112/0.8854, allocations: 146.4 kB / 0.9543 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001359/0.8855, allocations: 0.6837 MB / 0.955 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.014e-05/0.8856, allocations: 2.656 kB / 0.955 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.332e-05/0.8856, allocations: 9.812 kB / 0.955 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.8856, allocations: 0 / 0.955 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of Templates: time 0.002952/0.8886, allocations: 0.6976 MB / 0.9557 GB, free: 3.262 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/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