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.00136/0.00136, allocations: 114.7 kB / 16.37 MB, free: 5.984 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.001427/0.001428, allocations: 192.6 kB / 17.31 MB, free: 5.602 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.44/1.44, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.279/2.279, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 67.98 kB / 0.814 GB, free: 32.61 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3412, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002017/0.3433, allocations: 0.6633 MB / 0.9518 GB, free: 7.383 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001377/0.3446, allocations: 1.048 MB / 0.9528 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.624e-05/0.3447, allocations: 3.938 kB / 0.9528 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.248e-05/0.3448, allocations: 7.938 kB / 0.9528 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.874e-05/0.3448, allocations: 3.938 kB / 0.9528 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.3452, allocations: 43.89 kB / 0.9529 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.3453, allocations: 43.84 kB / 0.9529 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.3454, allocations: 16 kB / 0.9529 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.797e-05/0.3455, allocations: 23.86 kB / 0.9529 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.742e-05/0.3455, allocations: 27.91 kB / 0.953 GB, free: 6.152 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.66e-05/0.3456, allocations: 4 kB / 0.953 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.548e-05/0.3456, allocations: 15.98 kB / 0.953 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.299e-05/0.3457, allocations: 15.98 kB / 0.953 GB, free: 6.117 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.477e-05/0.3457, allocations: 15.88 kB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.3459, allocations: 51.84 kB / 0.9531 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3459, allocations: 4 kB / 0.9531 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.065e-06/0.3459, allocations: 3.984 kB / 0.9531 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.3459, allocations: 0 / 0.9531 GB, free: 6.043 MB / 0.7325 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.0006394/0.3465, allocations: 367.3 kB / 0.9534 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3466, allocations: 12.03 kB / 0.9534 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.187e-05/0.3466, allocations: 8.875 kB / 0.9535 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.3468, allocations: 168.3 kB / 0.9536 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.3468, allocations: 4.375 kB / 0.9536 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.427e-05/0.3468, allocations: 4.359 kB / 0.9536 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.347, allocations: 62.23 kB / 0.9537 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.347, allocations: 192 / 0.9537 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.3471, allocations: 3.938 kB / 0.9537 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.3471, allocations: 3.938 kB / 0.9537 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.3473, allocations: 47.95 kB / 0.9537 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004662/0.3477, allocations: 280.8 kB / 0.954 GB, free: 4.957 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.3479, allocations: 58.48 kB / 0.9541 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.387e-05/0.348, allocations: 28.97 kB / 0.9541 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.348, allocations: 4 kB / 0.9541 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/0.3482, allocations: 71.38 kB / 0.9542 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.723e-06/0.3482, allocations: 3.938 kB / 0.9542 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0003978/0.3486, allocations: 121.5 kB / 0.9543 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.705e-05/0.3487, allocations: 59.41 kB / 0.9543 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.047e-05/0.3488, allocations: 105.8 kB / 0.9544 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.3488, allocations: 25.7 kB / 0.9545 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.49e-05/0.3489, allocations: 84.14 kB / 0.9545 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.3489, allocations: 15.8 kB / 0.9546 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.3489, allocations: 17.72 kB / 0.9546 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.3491, allocations: 318.8 kB / 0.9549 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.19e-05/0.3492, allocations: 27.97 kB / 0.9549 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.3493, allocations: 47.41 kB / 0.9549 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/0.3495, allocations: 95.25 kB / 0.955 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.3495, allocations: 0 / 0.955 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002321/0.3497, allocations: 97.53 kB / 0.9551 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.3497, allocations: 8 kB / 0.9551 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3497, allocations: 0 / 0.9551 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3498, allocations: 3.938 kB / 0.9551 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.3499, allocations: 15.98 kB / 0.9552 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.3499, allocations: 8.078 kB / 0.9552 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.189e-05/0.35, allocations: 8.406 kB / 0.9552 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.35, allocations: 4 kB / 0.9552 GB, free: 3.645 MB / 0.7325 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 8.856e-05/0.3501, allocations: 129.2 kB / 0.9553 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.372e-05/0.3501, allocations: 7.984 kB / 0.9553 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002763/0.3504, allocations: 102 kB / 0.9554 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3504, allocations: 4 kB / 0.9554 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3504, allocations: 4 kB / 0.9554 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3504, allocations: 0 / 0.9554 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004011/0.3508, allocations: 354.5 kB / 0.9558 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3508, allocations: 0 / 0.9558 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.098e-05/0.3509, allocations: 15.92 kB / 0.9558 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3509, allocations: 0 / 0.9558 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.3509, allocations: 4 kB / 0.9558 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3509, allocations: 4 kB / 0.9558 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3509, allocations: 0 / 0.9558 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/0.3512, allocations: 199.3 kB / 0.956 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.3513, allocations: 81.09 kB / 0.956 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.3513, allocations: 0 / 0.956 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.692e-05/0.3514, allocations: 11.98 kB / 0.9561 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.565e-05/0.3514, allocations: 4 kB / 0.9561 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.3514, allocations: 7.938 kB / 0.9561 GB, free: 2.633 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.898e-05/0.3515, allocations: 87.27 kB / 0.9561 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3515, allocations: 0 / 0.9561 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002349/0.3517, allocations: 12 kB / 0.9562 GB, free: 2.535 MB / 0.7325 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.0001465/0.3519, allocations: 99.25 kB / 0.9563 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002406/0.3521, allocations: 68.25 kB / 0.9563 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3521, allocations: 4 kB / 0.9563 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.806e-05/0.3522, allocations: 27.98 kB / 0.9563 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.3525, allocations: 8.109 kB / 0.9564 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003388/0.3529, allocations: 133.5 kB / 0.9565 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/0.3531, allocations: 0.6885 MB / 0.9572 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.974e-05/0.3532, allocations: 11.92 kB / 0.9572 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.57e-05/0.3532, allocations: 15.44 kB / 0.9572 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of SimCode: time 3.1e-07/0.3532, allocations: 0 / 0.9572 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of Templates: time 0.003673/0.3569, allocations: 0.7766 MB / 0.9579 GB, free: 0.6484 MB / 0.7325 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 -s cvode -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