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.001436/0.001436, allocations: 103.5 kB / 15.99 MB, free: 5.895 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.001803/0.001803, allocations: 191.8 kB / 16.91 MB, free: 5.746 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.365/1.365, allocations: 222.9 MB / 240.6 MB, free: 15.41 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.246/2.246, allocations: 390.3 MB / 0.665 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 65.47 kB / 0.8127 GB, free: 33.23 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3065, allocations: 140.4 MB / 0.9498 GB, free: 9.227 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002504/0.3091, allocations: 0.7345 MB / 0.9505 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001725/0.3108, allocations: 1.046 MB / 0.9515 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.047e-05/0.3109, allocations: 0 / 0.9515 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.673e-05/0.311, allocations: 3.938 kB / 0.9515 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.516e-05/0.3111, allocations: 4 kB / 0.9515 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004287/0.3115, allocations: 39.89 kB / 0.9516 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.3116, allocations: 47.86 kB / 0.9516 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.3118, allocations: 7.984 kB / 0.9516 GB, free: 7.324 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.3119, allocations: 23.97 kB / 0.9516 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.848e-05/0.312, allocations: 19.86 kB / 0.9517 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.912e-05/0.312, allocations: 4 kB / 0.9517 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.856e-05/0.3121, allocations: 27.86 kB / 0.9517 GB, free: 7.25 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.722e-05/0.3121, allocations: 11.98 kB / 0.9517 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.066e-05/0.3122, allocations: 15.94 kB / 0.9517 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.3123, allocations: 39.86 kB / 0.9518 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3124, allocations: 0 / 0.9518 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.054e-06/0.3124, allocations: 0 / 0.9518 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.832e-06/0.3124, allocations: 0 / 0.9518 GB, free: 7.184 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.0007391/0.3131, allocations: 371.6 kB / 0.9521 GB, free: 6.77 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.3132, allocations: 16.03 kB / 0.9521 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.799e-05/0.3133, allocations: 0.9375 kB / 0.9521 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.3134, allocations: 168.3 kB / 0.9523 GB, free: 6.551 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.3134, allocations: 384 / 0.9523 GB, free: 6.551 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.3135, allocations: 8.375 kB / 0.9523 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.3137, allocations: 58.22 kB / 0.9524 GB, free: 6.48 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.3137, allocations: 4.125 kB / 0.9524 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3137, allocations: 3.938 kB / 0.9524 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.3138, allocations: 4 kB / 0.9524 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.314, allocations: 43.95 kB / 0.9524 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005601/0.3145, allocations: 280.8 kB / 0.9527 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.3147, allocations: 58.48 kB / 0.9527 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.3149, allocations: 32.97 kB / 0.9528 GB, free: 6 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.3149, allocations: 3.938 kB / 0.9528 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002666/0.3152, allocations: 75.38 kB / 0.9528 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.3152, allocations: 0 / 0.9528 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0004412/0.3156, allocations: 117.5 kB / 0.9529 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.3157, allocations: 55.41 kB / 0.953 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.607e-05/0.3158, allocations: 110.1 kB / 0.9531 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.3158, allocations: 25.7 kB / 0.9531 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.618e-05/0.3159, allocations: 92.08 kB / 0.9532 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.3159, allocations: 11.81 kB / 0.9532 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.638e-05/0.316, allocations: 25.7 kB / 0.9533 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3161, allocations: 310.8 kB / 0.9535 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.3162, allocations: 31.97 kB / 0.9536 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.3163, allocations: 51.41 kB / 0.9536 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.3165, allocations: 79.28 kB / 0.9537 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3165, allocations: 0 / 0.9537 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002701/0.3168, allocations: 101.6 kB / 0.9538 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3168, allocations: 7.938 kB / 0.9538 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3169, allocations: 4 kB / 0.9538 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.3169, allocations: 48 / 0.9538 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.317, allocations: 16.06 kB / 0.9538 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.317, allocations: 11.94 kB / 0.9538 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.844e-05/0.3171, allocations: 19.83 kB / 0.9539 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.3171, allocations: 4 kB / 0.9539 GB, free: 4.773 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 9.462e-05/0.3172, allocations: 121.7 kB / 0.954 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.3172, allocations: 0 / 0.954 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003004/0.3176, allocations: 102 kB / 0.9541 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.3176, allocations: 7.984 kB / 0.9541 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.3176, allocations: 3.938 kB / 0.9541 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3176, allocations: 0 / 0.9541 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004523/0.318, allocations: 354.6 kB / 0.9544 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3181, allocations: 0 / 0.9544 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.885e-05/0.3181, allocations: 4 kB / 0.9544 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.3181, allocations: 4 kB / 0.9544 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.3182, allocations: 7.984 kB / 0.9544 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3182, allocations: 0 / 0.9544 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.3182, allocations: 384 / 0.9544 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.3185, allocations: 199.3 kB / 0.9546 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.165e-05/0.3185, allocations: 81.11 kB / 0.9547 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.3185, allocations: 3.984 kB / 0.9547 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.3187, allocations: 8 kB / 0.9547 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.527e-05/0.3187, allocations: 11.98 kB / 0.9547 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.3187, allocations: 3.938 kB / 0.9547 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.444e-05/0.3188, allocations: 87.27 kB / 0.9548 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3188, allocations: 0 / 0.9548 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002542/0.319, allocations: 12 kB / 0.9548 GB, free: 3.676 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.0001543/0.3192, allocations: 99.25 kB / 0.9549 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002668/0.3195, allocations: 67.89 kB / 0.955 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3195, allocations: 0 / 0.955 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.3196, allocations: 35.91 kB / 0.955 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.3199, allocations: 10.03 kB / 0.955 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003598/0.3203, allocations: 175.4 kB / 0.9552 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.3205, allocations: 0.6883 MB / 0.9559 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.277e-05/0.3206, allocations: 11.44 kB / 0.9559 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.3206, allocations: 0 / 0.9559 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of Templates: time 0.002788/0.3234, allocations: 0.8563 MB / 0.9567 GB, free: 1.668 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 -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