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.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.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.01228/0.01228, allocations: 105.5 kB / 15.74 MB, free: 6.008 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.002673/0.002673, allocations: 199.9 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.085/2.085, allocations: 222.9 MB / 240.4 MB, free: 4.152 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 4.133/4.133, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002394/0.002394, allocations: 71.31 kB / 0.9504 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5479/0.5504, allocations: 140.4 MB / 1.087 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.003863/0.5543, allocations: 0.7469 MB / 1.088 GB, free: 1.223 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002297/0.5567, allocations: 1.079 MB / 1.089 GB, free: 132 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.256e-05/0.5568, allocations: 0 / 1.089 GB, free: 132 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.182e-05/0.5569, allocations: 3.938 kB / 1.089 GB, free: 128 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.557, allocations: 11.88 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004685/0.5617, allocations: 59.81 kB / 1.089 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.562, allocations: 63.92 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.5622, allocations: 20.17 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.5623, allocations: 35.77 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.879e-05/0.5624, allocations: 27.91 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.624e-05/0.5624, allocations: 8 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001989/0.5626, allocations: 31.8 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.613e-05/0.5627, allocations: 8 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.16e-05/0.5628, allocations: 35.84 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002192/0.563, allocations: 83.67 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.563, allocations: 0 / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.844e-06/0.563, allocations: 0 / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.072e-06/0.563, allocations: 0 / 1.09 GB, free: 15.74 MB / 0.8575 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.0009078/0.5639, allocations: 383 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/0.564, allocations: 8.031 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.376e-05/0.5641, allocations: 34.75 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.473e-05/0.5641, allocations: 8.844 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.5643, allocations: 176.2 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.5644, allocations: 12.31 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.5644, allocations: 4.375 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002787/0.5647, allocations: 69.97 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.5647, allocations: 0 / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.5647, allocations: 4 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.5647, allocations: 4 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002737/0.565, allocations: 39.95 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009116/0.566, allocations: 320.7 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.5662, allocations: 54.55 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.5664, allocations: 32.95 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.5664, allocations: 0 / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003626/0.5668, allocations: 87.39 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.5668, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0006219/0.5674, allocations: 125.5 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.5675, allocations: 59.39 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.5677, allocations: 121.8 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.721e-05/0.5677, allocations: 33.7 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.5678, allocations: 88.12 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.5679, allocations: 23.73 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.121e-05/0.5679, allocations: 29.64 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.5681, allocations: 322.8 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.5683, allocations: 35.91 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/0.5685, allocations: 78.36 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003519/0.5689, allocations: 109.8 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.5689, allocations: 4 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005077/0.5694, allocations: 133.5 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.5695, allocations: 4 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.5695, allocations: 0 / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.501e-05/0.5695, allocations: 4 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.5697, allocations: 27.95 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.343e-05/0.5698, allocations: 4 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.5699, allocations: 8 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.5699, allocations: 7.984 kB / 1.092 GB, free: 13.06 MB / 0.8575 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 0.0001478/0.5701, allocations: 131.5 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.298e-05/0.5701, allocations: 3.906 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.326e-05/0.5702, allocations: 12.38 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.5702, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5702, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.5702, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007298/0.571, allocations: 378.3 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.571, allocations: 4 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.683e-05/0.5711, allocations: 7.984 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.5711, allocations: 0 / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.5711, allocations: 8 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.5711, allocations: 3.938 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.5711, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004401/0.5716, allocations: 203.4 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.874e-05/0.5717, allocations: 85.02 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.5717, allocations: 3.938 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.5718, allocations: 11.92 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.5719, allocations: 8 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.5719, allocations: 3.984 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.653e-05/0.572, allocations: 87.28 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2e-07/0.572, allocations: 4 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005161/0.5726, allocations: 12 kB / 1.093 GB, free: 12.02 MB / 0.8575 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.001057/0.5736, allocations: 0.7436 MB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004341/0.5741, allocations: 79.94 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.5741, allocations: 0 / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.5743, allocations: 35.97 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004961/0.5748, allocations: 15.86 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006986/0.5818, allocations: 1.521 MB / 1.095 GB, free: 9.48 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005363/0.5824, allocations: 0.6885 MB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.097e-05/0.5825, allocations: 4 kB / 1.096 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.067e-05/0.5826, allocations: 23.42 kB / 1.096 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of SimCode: time 9.02e-07/0.5826, allocations: 4 kB / 1.096 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1185/0.7011, allocations: 2.098 MB / 1.098 GB, free: 6.777 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/13.14, allocations: 13.25 kB / 1.098 GB, free: 6.77 MB / 0.8575 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