Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.00123/0.00123, 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.0013/0.0013, allocations: 197.1 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.258/1.258, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.513/2.513, allocations: 469.8 MB / 0.7424 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 63.28 kB / 0.9087 GB, free: 34.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2527, allocations: 159.1 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001802/0.2545, allocations: 0.7574 MB / 1.065 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00118/0.2557, allocations: 1.074 MB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.538e-05/0.2558, allocations: 4 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.752e-05/0.2558, allocations: 3.938 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.273e-05/0.2559, allocations: 19.8 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.2562, allocations: 51.83 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.943e-05/0.2563, allocations: 67.84 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.763e-05/0.2564, allocations: 24.11 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.951e-05/0.2564, allocations: 27.91 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.059e-05/0.2565, allocations: 35.84 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.2565, allocations: 4 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.262e-05/0.2566, allocations: 19.98 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.914e-05/0.2566, allocations: 15.98 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.682e-05/0.2567, allocations: 35.8 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.2568, allocations: 75.73 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2568, allocations: 0 / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.665e-06/0.2568, allocations: 4 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.2568, allocations: 0 / 1.066 GB, free: 11.97 MB / 0.8262 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.0004855/0.2573, allocations: 375.5 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2573, allocations: 15.97 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.174e-05/0.2574, allocations: 34.73 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.887e-05/0.2574, allocations: 12.84 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.2575, allocations: 176.2 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.2576, allocations: 4.359 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.2576, allocations: 4.375 kB / 1.067 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.2578, allocations: 73.91 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.2578, allocations: 0 / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.2578, allocations: 4 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.2578, allocations: 4 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.258, allocations: 47.95 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005583/0.2585, allocations: 312.7 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001535/0.2587, allocations: 54.55 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.532e-05/0.2588, allocations: 36.95 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.2588, allocations: 0 / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001845/0.259, allocations: 83.34 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.259, allocations: 0 / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003829/0.2594, allocations: 133.6 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.2595, allocations: 55.39 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.306e-05/0.2596, allocations: 121.8 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.2596, allocations: 29.7 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.322e-05/0.2597, allocations: 96.06 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.095e-05/0.2597, allocations: 19.73 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.868e-05/0.2597, allocations: 29.7 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.2599, allocations: 322.8 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.26, allocations: 31.97 kB / 1.068 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.2601, allocations: 74.36 kB / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.2603, allocations: 113.8 kB / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2604, allocations: 0 / 1.068 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003017/0.2607, allocations: 133.4 kB / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.2607, allocations: 4 kB / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2607, allocations: 7.984 kB / 1.069 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.2607, allocations: 0 / 1.069 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.2608, allocations: 23.92 kB / 1.069 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.2608, allocations: 4.219 kB / 1.069 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.378e-05/0.2609, allocations: 11.98 kB / 1.069 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.2609, allocations: 8 kB / 1.069 GB, free: 9.285 MB / 0.8262 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.304e-05/0.261, allocations: 121.7 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.585e-05/0.2611, allocations: 7.906 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.407e-05/0.2611, allocations: 8.375 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.2611, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2611, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2611, allocations: 3.984 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004409/0.2616, allocations: 374.3 kB / 1.069 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.2616, allocations: 0 / 1.069 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.459e-05/0.2616, allocations: 15.92 kB / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.2616, allocations: 0 / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.2617, allocations: 4 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2617, allocations: 3.938 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2617, allocations: 0 / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002734/0.2619, allocations: 203.5 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.122e-05/0.262, allocations: 81.02 kB / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.462e-05/0.262, allocations: 0 / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.066e-05/0.2621, allocations: 11.92 kB / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.168e-05/0.2621, allocations: 15.97 kB / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.2622, allocations: 0 / 1.069 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.591e-05/0.2622, allocations: 103.4 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2622, allocations: 0 / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002323/0.2625, allocations: 15.98 kB / 1.07 GB, free: 8.234 MB / 0.8262 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.0006105/0.2631, allocations: 0.7449 MB / 1.07 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002633/0.2634, allocations: 79.86 kB / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2634, allocations: 7.875 kB / 1.07 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.2635, allocations: 31.98 kB / 1.07 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.2637, allocations: 20.36 kB / 1.07 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.2654, allocations: 1.509 MB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.2656, allocations: 0.6962 MB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.101e-05/0.2657, allocations: 7.984 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.145e-05/0.2657, allocations: 19.44 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2657, allocations: 0 / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.108/1.374, allocations: 2.059 MB / 1.075 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/13.1, allocations: 7.062 kB / 1.075 GB, free: 3.012 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches