Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.001231/0.001231, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00135/0.00135, allocations: 193.7 kB / 16.14 MB, free: 6.711 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.363/1.363, allocations: 222.9 MB / 239.8 MB, free: 4.539 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.407/2.407, allocations: 390.2 MB / 0.6643 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 55.91 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7546/0.756, allocations: 140.4 MB / 0.9491 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002813/0.7589, allocations: 0.8147 MB / 0.9499 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001929/0.7608, allocations: 1.071 MB / 0.9509 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.785e-05/0.7609, allocations: 1.25 kB / 0.9509 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.82e-05/0.761, allocations: 11.92 kB / 0.9509 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.7611, allocations: 5.188 kB / 0.9509 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.7616, allocations: 40.23 kB / 0.951 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.7617, allocations: 68.28 kB / 0.951 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.7619, allocations: 15.61 kB / 0.951 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.762, allocations: 31.08 kB / 0.9511 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.332e-05/0.7621, allocations: 25.16 kB / 0.9511 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.7621, allocations: 3.438 kB / 0.9511 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.097e-05/0.7622, allocations: 21.67 kB / 0.9511 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.919e-05/0.7622, allocations: 19.38 kB / 0.9511 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.365e-05/0.7623, allocations: 27.23 kB / 0.9512 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.7625, allocations: 77.03 kB / 0.9512 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.7625, allocations: 0 / 0.9512 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.945e-06/0.7625, allocations: 1.156 kB / 0.9512 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.7625, allocations: 0 / 0.9512 GB, free: 7.371 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006159/0.7631, allocations: 371.9 kB / 0.9516 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.448e-05/0.7632, allocations: 18.42 kB / 0.9516 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.419e-05/0.7632, allocations: 42.69 kB / 0.9517 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.933e-05/0.7633, allocations: 8.281 kB / 0.9517 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.7634, allocations: 176.1 kB / 0.9518 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.7634, allocations: 2.969 kB / 0.9518 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.7635, allocations: 4.062 kB / 0.9518 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002113/0.7637, allocations: 74.12 kB / 0.9519 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.7637, allocations: 0 / 0.9519 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.7637, allocations: 3.938 kB / 0.9519 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.7637, allocations: 1.062 kB / 0.9519 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.7639, allocations: 48.77 kB / 0.952 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005993/0.7645, allocations: 325 kB / 0.9523 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001644/0.7647, allocations: 61.12 kB / 0.9523 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.645e-05/0.7648, allocations: 31.05 kB / 0.9524 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.7648, allocations: 3.984 kB / 0.9524 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.765, allocations: 74.5 kB / 0.9524 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.765, allocations: 0 / 0.9524 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004121/0.7655, allocations: 136.3 kB / 0.9526 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.7655, allocations: 53.84 kB / 0.9526 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.789e-05/0.7656, allocations: 124 kB / 0.9527 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.7656, allocations: 26.83 kB / 0.9528 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.972e-05/0.7657, allocations: 95.22 kB / 0.9529 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.7657, allocations: 14.06 kB / 0.9529 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.7657, allocations: 31.83 kB / 0.9529 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.932e-05/0.7658, allocations: 323.8 kB / 0.9532 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.7659, allocations: 32.28 kB / 0.9532 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.766, allocations: 70.83 kB / 0.9533 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.7663, allocations: 111.7 kB / 0.9534 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7663, allocations: 7.938 kB / 0.9534 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002985/0.7666, allocations: 125.4 kB / 0.9535 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.7666, allocations: 6.5 kB / 0.9535 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.7666, allocations: 1.938 kB / 0.9535 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.7666, allocations: 2 kB / 0.9535 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.7668, allocations: 24.89 kB / 0.9536 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.7668, allocations: 6.688 kB / 0.9536 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.235e-05/0.7669, allocations: 17.27 kB / 0.9536 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.7669, allocations: 8.25 kB / 0.9536 GB, free: 5.121 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * 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.802e-05/0.767, allocations: 119.2 kB / 0.9537 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.473e-05/0.767, allocations: 11.44 kB / 0.9537 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.707e-05/0.767, allocations: 9.641 kB / 0.9537 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.767, allocations: 0 / 0.9537 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.7671, allocations: 1.75 kB / 0.9537 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.7671, allocations: 4 kB / 0.9537 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003845/0.7674, allocations: 376 kB / 0.9541 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.7675, allocations: 1.438 kB / 0.9541 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.328e-05/0.7675, allocations: 8.938 kB / 0.9541 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.7675, allocations: 1.5 kB / 0.9541 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.7675, allocations: 0 / 0.9541 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.7676, allocations: 9.516 kB / 0.9541 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.7676, allocations: 7.938 kB / 0.9541 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002579/0.7678, allocations: 192.4 kB / 0.9543 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.473e-05/0.7679, allocations: 82.48 kB / 0.9544 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.7679, allocations: 5.047 kB / 0.9544 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.92e-05/0.768, allocations: 8 kB / 0.9544 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.768, allocations: 14.52 kB / 0.9544 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.768, allocations: 2.75 kB / 0.9544 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.121e-05/0.7681, allocations: 97.2 kB / 0.9545 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7681, allocations: 0 / 0.9545 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002407/0.7683, allocations: 13.03 kB / 0.9545 GB, free: 4.23 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0004901/0.7688, allocations: 0.7465 MB / 0.9553 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000272/0.7691, allocations: 80.69 kB / 0.9553 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.7691, allocations: 0 / 0.9553 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.7692, allocations: 40.22 kB / 0.9554 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.7695, allocations: 14.56 kB / 0.9554 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.7709, allocations: 1.519 MB / 0.9569 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.7711, allocations: 0.695 MB / 0.9575 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.689e-05/0.7711, allocations: 7.875 kB / 0.9576 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.65e-05/0.7712, allocations: 23.23 kB / 0.9576 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7712, allocations: 1.25 kB / 0.9576 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01197/0.7832, allocations: 1.872 MB / 0.9594 GB, free: 392 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001541/0.7834, allocations: 220.1 kB / 0.9596 GB, free: 132 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.565, allocations: 0 / 0.9596 GB, free: 132 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches