Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.02461/0.02461, allocations: 101.7 kB / 15.73 MB, free: 6.477 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.002621/0.002621, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.235/2.235, allocations: 222.9 MB / 240.4 MB, free: 4.355 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 3.32/3.32, allocations: 390.3 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 68.56 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2604, allocations: 140.4 MB / 1.087 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.00185/0.2622, allocations: 0.7445 MB / 1.088 GB, free: 1.348 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.2636, allocations: 1.075 MB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.854e-05/0.2637, allocations: 8 kB / 1.089 GB, free: 256 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.101e-05/0.2637, allocations: 3.938 kB / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.007e-05/0.2638, allocations: 7.875 kB / 1.089 GB, free: 244 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.2641, allocations: 55.81 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001098/0.2642, allocations: 63.84 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.2643, allocations: 28.14 kB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.92e-05/0.2644, allocations: 27.86 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.928e-05/0.2645, allocations: 31.91 kB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.2645, allocations: 8 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.455e-05/0.2646, allocations: 23.92 kB / 1.09 GB, free: 0 / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.776e-05/0.2646, allocations: 20.06 kB / 1.09 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.2647, allocations: 23.88 kB / 1.09 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.2648, allocations: 87.52 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2649, allocations: 0 / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2649, allocations: 0 / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.561e-06/0.2649, allocations: 4 kB / 1.09 GB, free: 15.87 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.0005309/0.2654, allocations: 375 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.2655, allocations: 16.03 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.743e-05/0.2655, allocations: 38.73 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.2655, allocations: 8.844 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.2657, allocations: 172.2 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.2657, allocations: 8.312 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.858e-05/0.2657, allocations: 4.375 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.2659, allocations: 77.91 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.2659, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-06/0.266, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.266, allocations: 8 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.2661, allocations: 43.95 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006046/0.2667, allocations: 320.7 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.2669, allocations: 54.55 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.963e-05/0.267, allocations: 36.95 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.267, allocations: 0 / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.2673, allocations: 79.41 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.2673, allocations: 0 / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004185/0.2677, allocations: 129.5 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.2677, allocations: 55.41 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.928e-05/0.2678, allocations: 125.7 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.2679, allocations: 25.7 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.084e-05/0.2679, allocations: 100.1 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.2679, allocations: 11.75 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.772e-05/0.268, allocations: 37.64 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.2681, allocations: 326.8 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.2682, allocations: 23.98 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.2684, allocations: 73.92 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.2686, allocations: 109.9 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2686, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003223/0.2689, allocations: 133.4 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.269, allocations: 13.33 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.269, allocations: 4 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.269, allocations: 0 / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.2691, allocations: 15.98 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2691, allocations: 8.219 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.258e-05/0.2692, allocations: 11.98 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.2692, allocations: 4 kB / 1.092 GB, free: 13.2 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 8.587e-05/0.2693, allocations: 125.7 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.2693, allocations: 3.906 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.477e-05/0.2694, allocations: 12.38 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2694, allocations: 3.938 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2694, allocations: 0 / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.2694, allocations: 3.984 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.2699, allocations: 382.3 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2699, allocations: 0 / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.27e-05/0.2699, allocations: 7.984 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.2699, allocations: 4 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.2699, allocations: 0 / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.27, allocations: 3.938 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.27, allocations: 0 / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.2702, allocations: 199.9 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.717e-05/0.2703, allocations: 89 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.2703, allocations: 11.94 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.277e-05/0.2704, allocations: 11.92 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.2705, allocations: 11.92 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-06/0.2705, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.061e-05/0.2705, allocations: 99.27 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2705, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000247/0.2708, allocations: 16 kB / 1.093 GB, free: 12.13 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.0005978/0.2714, allocations: 0.7402 MB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002635/0.2717, allocations: 79.81 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2717, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.2718, allocations: 31.98 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.272, allocations: 17.78 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.2739, allocations: 1.521 MB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.2742, allocations: 0.6885 MB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.219e-05/0.2742, allocations: 12 kB / 1.096 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.048e-05/0.2743, allocations: 23.42 kB / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of SimCode: time 6.81e-07/0.2743, allocations: 0 / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7376/1.012, allocations: 2.12 MB / 1.098 GB, free: 6.91 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.74, allocations: 12.64 kB / 1.098 GB, free: 6.906 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches