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.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: "" <> 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.001261/0.001261, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001335/0.001335, allocations: 196.8 kB / 16.14 MB, free: 6.734 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.21/1.21, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.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.052/2.052, allocations: 390.2 MB / 0.6643 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 71.89 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5146/0.5159, allocations: 140.4 MB / 0.9491 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001572/0.5175, allocations: 0.8123 MB / 0.9498 GB, free: 8.598 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009299/0.5184, allocations: 1.164 MB / 0.951 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.262e-05/0.5185, allocations: 5.312 kB / 0.951 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.719e-05/0.5185, allocations: 3.938 kB / 0.951 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.306e-05/0.5186, allocations: 9.312 kB / 0.951 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.5189, allocations: 126.3 kB / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.122e-05/0.519, allocations: 110.7 kB / 0.9512 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.404e-05/0.5191, allocations: 19.67 kB / 0.9512 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.742e-05/0.5192, allocations: 45.34 kB / 0.9513 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.611e-05/0.5192, allocations: 42.03 kB / 0.9513 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.344e-05/0.5193, allocations: 6.656 kB / 0.9513 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.764e-05/0.5193, allocations: 25.33 kB / 0.9514 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.793e-05/0.5194, allocations: 15.05 kB / 0.9514 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.098e-05/0.5194, allocations: 37.06 kB / 0.9514 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001215/0.5195, allocations: 113.4 kB / 0.9515 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.5195, allocations: 0 / 0.9515 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.5196, allocations: 0 / 0.9515 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.826e-06/0.5196, allocations: 5.344 kB / 0.9515 GB, free: 7.301 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.0004366/0.52, allocations: 417.7 kB / 0.9519 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.52, allocations: 13.47 kB / 0.9519 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.237e-05/0.5201, allocations: 36 kB / 0.952 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.5201, allocations: 11.31 kB / 0.952 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.015e-05/0.5202, allocations: 182.7 kB / 0.9522 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.5202, allocations: 5.344 kB / 0.9522 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.5202, allocations: 10.66 kB / 0.9522 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001625/0.5204, allocations: 75.84 kB / 0.9522 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.5204, allocations: 5.266 kB / 0.9522 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.5204, allocations: 4 kB / 0.9523 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.5204, allocations: 5.312 kB / 0.9523 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.5206, allocations: 46.77 kB / 0.9523 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000353/0.521, allocations: 348.8 kB / 0.9526 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.5211, allocations: 59.73 kB / 0.9527 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.647e-05/0.5212, allocations: 30.75 kB / 0.9527 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.5212, allocations: 1.25 kB / 0.9527 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001797/0.5214, allocations: 84.67 kB / 0.9528 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.213e-06/0.5214, allocations: 0 / 0.9528 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003738/0.5218, allocations: 163.8 kB / 0.953 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.124e-05/0.5218, allocations: 53.88 kB / 0.953 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.413e-05/0.5219, allocations: 127 kB / 0.9531 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.5219, allocations: 33.22 kB / 0.9532 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.317e-05/0.522, allocations: 95.83 kB / 0.9533 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.522, allocations: 11.84 kB / 0.9533 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.078e-05/0.522, allocations: 44.03 kB / 0.9533 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.771e-05/0.5221, allocations: 321.7 kB / 0.9536 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.5222, allocations: 55.23 kB / 0.9537 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.5224, allocations: 88.39 kB / 0.9538 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.5226, allocations: 150.9 kB / 0.9539 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.5226, allocations: 0 / 0.9539 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003906/0.523, allocations: 215.2 kB / 0.9541 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.5231, allocations: 42.38 kB / 0.9541 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.5231, allocations: 1.25 kB / 0.9541 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.5231, allocations: 2.469 kB / 0.9541 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.711e-05/0.5232, allocations: 14.39 kB / 0.9542 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.5232, allocations: 2.281 kB / 0.9542 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.5234, allocations: 43.8 kB / 0.9542 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.5234, allocations: 15.22 kB / 0.9542 GB, free: 4.816 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.016e-05/0.5235, allocations: 116.3 kB / 0.9543 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.337e-05/0.5235, allocations: 11.7 kB / 0.9543 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002517/0.5238, allocations: 124.5 kB / 0.9545 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.5238, allocations: 5.656 kB / 0.9545 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.5238, allocations: 3.938 kB / 0.9545 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.5238, allocations: 0 / 0.9545 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003092/0.5241, allocations: 373.9 kB / 0.9548 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.5241, allocations: 1.312 kB / 0.9548 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.48e-05/0.5242, allocations: 10.7 kB / 0.9548 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.5242, allocations: 0 / 0.9548 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.5242, allocations: 9.125 kB / 0.9548 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.5242, allocations: 9.344 kB / 0.9549 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.5242, allocations: 0 / 0.9549 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.5244, allocations: 212.4 kB / 0.9551 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.669e-05/0.5245, allocations: 83.23 kB / 0.9551 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.5245, allocations: 1.031 kB / 0.9551 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.925e-05/0.5246, allocations: 16.08 kB / 0.9552 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.333e-05/0.5246, allocations: 7.172 kB / 0.9552 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.5246, allocations: 2.031 kB / 0.9552 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.91e-05/0.5246, allocations: 96.55 kB / 0.9553 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5246, allocations: 0 / 0.9553 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002424/0.5249, allocations: 24.06 kB / 0.9553 GB, free: 3.852 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.0003958/0.5253, allocations: 0.7617 MB / 0.956 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003088/0.5256, allocations: 176.9 kB / 0.9562 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5256, allocations: 0 / 0.9562 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.5257, allocations: 36.2 kB / 0.9562 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.526, allocations: 22.23 kB / 0.9562 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.5275, allocations: 1.72 MB / 0.9579 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.883e-05/0.5276, allocations: 0.6894 MB / 0.9586 GB, free: 0.7344 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.316e-05/0.5277, allocations: 12.05 kB / 0.9586 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.664e-05/0.5277, allocations: 19.19 kB / 0.9586 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.5277, allocations: 3.938 kB / 0.9586 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9351/1.463, allocations: 2.308 MB / 0.9609 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002642/1.463, allocations: 220.4 kB / 0.9611 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/3.947, allocations: 1.125 kB / 0.9611 GB, free: 15.3 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