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.001309/0.001309, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 196 kB / 16.54 MB, free: 6.672 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.515/1.515, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.62/2.62, allocations: 390.2 MB / 0.6647 GB, free: 296 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001766, allocations: 59.91 kB / 0.8125 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9299/0.9317, allocations: 140.4 MB / 0.9496 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002549/0.9343, allocations: 0.6577 MB / 0.9502 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001638/0.936, allocations: 1.051 MB / 0.9513 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.97e-05/0.9361, allocations: 0 / 0.9513 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.243e-05/0.9361, allocations: 3.938 kB / 0.9513 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.896e-05/0.9362, allocations: 9.516 kB / 0.9513 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004004/0.9366, allocations: 41.23 kB / 0.9513 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.9368, allocations: 46.52 kB / 0.9514 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.9369, allocations: 14.14 kB / 0.9514 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.619e-05/0.937, allocations: 14.97 kB / 0.9514 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.727e-05/0.9371, allocations: 21.56 kB / 0.9514 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.072e-05/0.9371, allocations: 4.062 kB / 0.9514 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.662e-05/0.9372, allocations: 22.59 kB / 0.9514 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.402e-05/0.9372, allocations: 9.5 kB / 0.9514 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.234e-05/0.9373, allocations: 21.17 kB / 0.9515 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.9374, allocations: 56.03 kB / 0.9515 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.9374, allocations: 1.219 kB / 0.9515 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.164e-06/0.9374, allocations: 3.938 kB / 0.9515 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.223e-06/0.9375, allocations: 0 / 0.9515 GB, free: 7.676 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.0007301/0.9382, allocations: 363 kB / 0.9519 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.9382, allocations: 13.58 kB / 0.9519 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.543e-05/0.9383, allocations: 5.844 kB / 0.9519 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.538e-05/0.9384, allocations: 167.1 kB / 0.952 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.9384, allocations: 5.656 kB / 0.952 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.9384, allocations: 2.75 kB / 0.9521 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002411/0.9387, allocations: 75.45 kB / 0.9521 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.9387, allocations: 192 / 0.9521 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.9387, allocations: 5.094 kB / 0.9521 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.9387, allocations: 0.9375 kB / 0.9521 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.9389, allocations: 44.14 kB / 0.9522 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004553/0.9394, allocations: 273 kB / 0.9524 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.9396, allocations: 69.41 kB / 0.9525 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.787e-05/0.9397, allocations: 30.42 kB / 0.9525 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.9397, allocations: 1.406 kB / 0.9525 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.94, allocations: 72.97 kB / 0.9526 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.94, allocations: 4 kB / 0.9526 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004323/0.9404, allocations: 118.4 kB / 0.9527 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.9405, allocations: 52.59 kB / 0.9528 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.342e-05/0.9405, allocations: 110.7 kB / 0.9529 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.9406, allocations: 25.7 kB / 0.9529 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.893e-05/0.9406, allocations: 85.33 kB / 0.953 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.9406, allocations: 18.06 kB / 0.953 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.692e-05/0.9407, allocations: 28.64 kB / 0.953 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.806e-05/0.9407, allocations: 316 kB / 0.9533 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.773e-05/0.9408, allocations: 25 kB / 0.9533 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.941, allocations: 43.27 kB / 0.9534 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.9412, allocations: 86.61 kB / 0.9535 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.9412, allocations: 0.5 kB / 0.9535 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002503/0.9414, allocations: 108 kB / 0.9536 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.9415, allocations: 9.094 kB / 0.9536 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.9415, allocations: 1.438 kB / 0.9536 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.9415, allocations: 1.281 kB / 0.9536 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.9416, allocations: 21.67 kB / 0.9536 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.904e-06/0.9416, allocations: 2.438 kB / 0.9536 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.393e-05/0.9417, allocations: 8.266 kB / 0.9536 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.9417, allocations: 2.938 kB / 0.9536 GB, free: 5.629 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 7.182e-05/0.9418, allocations: 124.8 kB / 0.9537 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.9418, allocations: 9.125 kB / 0.9537 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002871/0.9421, allocations: 100.9 kB / 0.9538 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.9421, allocations: 1.344 kB / 0.9538 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.9421, allocations: 0 / 0.9538 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.9421, allocations: 1.344 kB / 0.9538 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003994/0.9425, allocations: 360.1 kB / 0.9542 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.9425, allocations: 0 / 0.9542 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.03e-05/0.9426, allocations: 10.8 kB / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.9426, allocations: 0 / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.357e-06/0.9426, allocations: 1.125 kB / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.9426, allocations: 3.938 kB / 0.9542 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.9426, allocations: 1.312 kB / 0.9542 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.9429, allocations: 204 kB / 0.9544 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.601e-05/0.9429, allocations: 78.39 kB / 0.9545 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.943, allocations: 1.969 kB / 0.9545 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.817e-05/0.9431, allocations: 12.33 kB / 0.9545 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.144e-05/0.9431, allocations: 5.891 kB / 0.9545 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.9431, allocations: 6.781 kB / 0.9545 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.327e-05/0.9432, allocations: 87.84 kB / 0.9546 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.32e-07/0.9432, allocations: 0 / 0.9546 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002604/0.9435, allocations: 18.69 kB / 0.9546 GB, free: 4.688 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.0001973/0.9437, allocations: 105 kB / 0.9547 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003046/0.944, allocations: 65.44 kB / 0.9548 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.944, allocations: 0 / 0.9548 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.9441, allocations: 35.5 kB / 0.9548 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.9444, allocations: 10.06 kB / 0.9548 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004313/0.9448, allocations: 135.3 kB / 0.9549 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.945, allocations: 0.6891 MB / 0.9556 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.704e-05/0.9451, allocations: 3.438 kB / 0.9556 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.9451, allocations: 9.719 kB / 0.9556 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of SimCode: time 5.01e-07/0.9451, allocations: 8.969 kB / 0.9556 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of Templates: time 0.003578/0.9487, allocations: 0.7801 MB / 0.9564 GB, free: 3.293 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