Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001274/0.001274, 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.001604/0.001604, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.543/2.543, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 59.91 kB / 0.8694 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6402/0.642, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002088/0.6442, allocations: 0.7403 MB / 1.018 GB, free: 1.773 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.6455, allocations: 1.074 MB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.052e-05/0.6456, allocations: 4 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.388e-05/0.6456, allocations: 3.938 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.174e-05/0.6457, allocations: 11.86 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.6461, allocations: 59.81 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.6462, allocations: 67.84 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.6463, allocations: 20.16 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.463e-05/0.6464, allocations: 31.86 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.778e-05/0.6464, allocations: 31.89 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.6465, allocations: 12 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.329e-05/0.6465, allocations: 27.92 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.172e-05/0.6466, allocations: 11.92 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.573e-05/0.6466, allocations: 31.86 kB / 1.02 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.6468, allocations: 75.75 kB / 1.02 GB, free: 304 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.6468, allocations: 0 / 1.02 GB, free: 304 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.363e-06/0.6468, allocations: 0 / 1.02 GB, free: 304 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.6468, allocations: 0 / 1.02 GB, free: 304 kB / 0.7637 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.0005202/0.6473, allocations: 385.4 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.6474, allocations: 12.03 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.597e-05/0.6474, allocations: 34.75 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.784e-05/0.6474, allocations: 8.875 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.6476, allocations: 184.1 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.6476, allocations: 4.375 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.312e-05/0.6476, allocations: 4.375 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.6478, allocations: 73.92 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.6478, allocations: 0 / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.6478, allocations: 0 / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.6478, allocations: 7.984 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.648, allocations: 39.97 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006071/0.6486, allocations: 324.5 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.6488, allocations: 62.55 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.6489, allocations: 24.97 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.649, allocations: 4 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.6492, allocations: 75.36 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.866e-06/0.6492, allocations: 96 / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004235/0.6496, allocations: 141.5 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.6497, allocations: 51.41 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.258e-05/0.6498, allocations: 125.8 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.6498, allocations: 29.7 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.685e-05/0.6499, allocations: 88.05 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.6499, allocations: 19.8 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-05/0.6499, allocations: 29.72 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.656e-05/0.65, allocations: 322.8 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.6502, allocations: 31.97 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.6503, allocations: 73.92 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.6505, allocations: 113.9 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.6506, allocations: 3.938 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003149/0.6509, allocations: 125.5 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.6509, allocations: 8 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.6509, allocations: 0 / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.6509, allocations: 7.938 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.6511, allocations: 20.2 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.6511, allocations: 3.984 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.658e-05/0.6512, allocations: 19.84 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.6512, allocations: 4 kB / 1.022 GB, free: 13.61 MB / 0.7794 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 9.035e-05/0.6513, allocations: 129.7 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.6513, allocations: 11.84 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.029e-05/0.6514, allocations: 4.375 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.6514, allocations: 7.984 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.6514, allocations: 4 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.6514, allocations: 0 / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004532/0.6518, allocations: 378.4 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.6519, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.434e-05/0.6519, allocations: 7.984 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.6519, allocations: 0 / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.6519, allocations: 0 / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.652, allocations: 11.94 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.652, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.6522, allocations: 195.4 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-05/0.6523, allocations: 85.02 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.6523, allocations: 0 / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.468e-05/0.6524, allocations: 11.92 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.6524, allocations: 8 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.966e-06/0.6525, allocations: 4 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.939e-05/0.6525, allocations: 95.2 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6525, allocations: 0 / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002596/0.6528, allocations: 20 kB / 1.023 GB, free: 12.55 MB / 0.7794 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.0006177/0.6534, allocations: 0.7407 MB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000297/0.6537, allocations: 83.77 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.6537, allocations: 0 / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.6539, allocations: 32.41 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.6541, allocations: 17.19 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.6559, allocations: 1.515 MB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.6561, allocations: 0.6885 MB / 1.026 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.813e-05/0.6562, allocations: 4 kB / 1.026 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.889e-05/0.6562, allocations: 23.42 kB / 1.026 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of SimCode: time 2.9e-07/0.6562, allocations: 0 / 1.026 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.6831, allocations: 2.073 MB / 1.028 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.77/8.453, allocations: 12.75 kB / 1.028 GB, free: 7.328 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches