Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 108 kB / 15.61 MB, free: 152 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.00178/0.001781, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.416/2.416, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 63.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6831/0.6846, allocations: 140.4 MB / 0.9497 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001771/0.6864, allocations: 0.7456 MB / 0.9505 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.6875, allocations: 1.153 MB / 0.9516 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.383e-05/0.6875, allocations: 0 / 0.9516 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.616e-05/0.6875, allocations: 9.266 kB / 0.9516 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.189e-05/0.6876, allocations: 17.14 kB / 0.9516 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003999/0.688, allocations: 133.2 kB / 0.9517 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.6882, allocations: 123.3 kB / 0.9519 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.885e-05/0.6883, allocations: 21.42 kB / 0.9519 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.667e-05/0.6884, allocations: 48.48 kB / 0.9519 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.419e-05/0.6884, allocations: 50.64 kB / 0.952 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.664e-05/0.6885, allocations: 11 kB / 0.952 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.782e-05/0.6885, allocations: 22.02 kB / 0.952 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.19e-05/0.6886, allocations: 18.98 kB / 0.952 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.083e-05/0.6886, allocations: 49.23 kB / 0.9521 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.6888, allocations: 117 kB / 0.9522 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.6888, allocations: 1.812 kB / 0.9522 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6888, allocations: 0 / 0.9522 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.6888, allocations: 0 / 0.9522 GB, free: 7.242 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004424/0.6892, allocations: 429.7 kB / 0.9526 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.6893, allocations: 9.906 kB / 0.9526 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.313e-05/0.6893, allocations: 35.81 kB / 0.9526 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.511e-05/0.6894, allocations: 15.5 kB / 0.9526 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.753e-05/0.6894, allocations: 175.2 kB / 0.9528 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.6895, allocations: 8.531 kB / 0.9528 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.6895, allocations: 7.312 kB / 0.9528 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.6897, allocations: 77.75 kB / 0.9529 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.6897, allocations: 0 / 0.9529 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.6897, allocations: 8 kB / 0.9529 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.6897, allocations: 1.438 kB / 0.9529 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001723/0.6899, allocations: 50.89 kB / 0.953 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003836/0.6903, allocations: 347.7 kB / 0.9533 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001437/0.6904, allocations: 60.23 kB / 0.9534 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.351e-05/0.6905, allocations: 32 kB / 0.9534 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.6906, allocations: 0.9375 kB / 0.9534 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.6908, allocations: 91.56 kB / 0.9535 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.342e-06/0.6908, allocations: 4.938 kB / 0.9535 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.000397/0.6912, allocations: 147.6 kB / 0.9536 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.299e-05/0.6912, allocations: 53.69 kB / 0.9537 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.915e-05/0.6913, allocations: 124 kB / 0.9538 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.6913, allocations: 32.05 kB / 0.9538 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.834e-05/0.6913, allocations: 100.3 kB / 0.9539 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.6914, allocations: 19.34 kB / 0.9539 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.604e-05/0.6914, allocations: 40.84 kB / 0.954 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.095e-05/0.6915, allocations: 317.9 kB / 0.9543 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.6916, allocations: 54.67 kB / 0.9543 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.6918, allocations: 96.64 kB / 0.9544 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002405/0.692, allocations: 143.1 kB / 0.9546 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.692, allocations: 4 kB / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004003/0.6924, allocations: 210.8 kB / 0.9548 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.6925, allocations: 37 kB / 0.9548 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.6925, allocations: 1.156 kB / 0.9548 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.6925, allocations: 2.453 kB / 0.9548 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.635e-05/0.6926, allocations: 18.09 kB / 0.9548 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.6926, allocations: 6.406 kB / 0.9548 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.6928, allocations: 48.67 kB / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.6929, allocations: 10.72 kB / 0.9549 GB, free: 4.754 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.39e-05/0.6929, allocations: 116.8 kB / 0.955 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/0.693, allocations: 11.16 kB / 0.955 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.6932, allocations: 133 kB / 0.9551 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.6933, allocations: 1.094 kB / 0.9551 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6933, allocations: 4 kB / 0.9551 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.6933, allocations: 0 / 0.9551 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003401/0.6936, allocations: 374.6 kB / 0.9555 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6936, allocations: 0 / 0.9555 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.665e-05/0.6937, allocations: 7.344 kB / 0.9555 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.6937, allocations: 7.984 kB / 0.9555 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.6937, allocations: 6.094 kB / 0.9555 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.6937, allocations: 3.938 kB / 0.9555 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.6937, allocations: 0 / 0.9555 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.694, allocations: 217.5 kB / 0.9557 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.923e-05/0.694, allocations: 82.36 kB / 0.9558 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.694, allocations: 5.625 kB / 0.9558 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.495e-05/0.6941, allocations: 11.95 kB / 0.9558 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.6942, allocations: 11.45 kB / 0.9558 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.6942, allocations: 2.219 kB / 0.9558 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.169e-05/0.6942, allocations: 92.08 kB / 0.9559 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6942, allocations: 0 / 0.9559 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002679/0.6945, allocations: 20.56 kB / 0.9559 GB, free: 3.789 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004682/0.695, allocations: 0.754 MB / 0.9567 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003551/0.6953, allocations: 177.4 kB / 0.9568 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.6954, allocations: 320 / 0.9568 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.6955, allocations: 46.84 kB / 0.9569 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.6958, allocations: 19.86 kB / 0.9569 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001712/0.6975, allocations: 1.701 MB / 0.9586 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001148/0.6977, allocations: 0.6891 MB / 0.9592 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.525e-05/0.6977, allocations: 15.67 kB / 0.9593 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.188e-05/0.6978, allocations: 19.66 kB / 0.9593 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.6978, allocations: 0 / 0.9593 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01797/0.7157, allocations: 2.53 MB / 0.9617 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.668/8.384, allocations: 7.672 kB / 0.9618 GB, free: 15.32 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches