Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007822/0.007822, allocations: 101 kB / 15.73 MB, free: 6.047 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.001672/0.001672, allocations: 182.3 kB / 16.67 MB, free: 5.977 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.324 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 2.507/2.507, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 62.58 kB / 0.9508 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2985, allocations: 140.4 MB / 1.088 GB, free: 1.559 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.00204/0.3006, allocations: 0.7634 MB / 1.089 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.3023, allocations: 1.157 MB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.537e-05/0.3024, allocations: 0 / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.316e-05/0.3025, allocations: 7.922 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.44e-05/0.3026, allocations: 11.88 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006412/0.3032, allocations: 143.8 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002624/0.3035, allocations: 127.7 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.3037, allocations: 20.19 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.3038, allocations: 55.89 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.304, allocations: 43.81 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.304, allocations: 12 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.746e-05/0.3041, allocations: 27.98 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.184e-05/0.3042, allocations: 11.98 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.222e-05/0.3043, allocations: 51.77 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.3046, allocations: 123.6 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.3046, allocations: 4 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.923e-06/0.3046, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.3046, allocations: 0 / 1.09 GB, free: 14.99 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009625/0.3056, allocations: 416.9 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.3056, allocations: 12.03 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.761e-05/0.3057, allocations: 8.844 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000206/0.3059, allocations: 168.3 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.306, allocations: 4.375 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.306, allocations: 16.38 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.3063, allocations: 74.14 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.3063, allocations: 3.938 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.3063, allocations: 4 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3064, allocations: 0 / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.3066, allocations: 43.95 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007998/0.3074, allocations: 352.6 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.3076, allocations: 58.55 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.3077, allocations: 28.95 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.3078, allocations: 8 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003474/0.3081, allocations: 99.38 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 2.545e-06/0.3081, allocations: 3.938 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0005404/0.3087, allocations: 145.5 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.3087, allocations: 55.39 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.3089, allocations: 117.8 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.546e-05/0.3089, allocations: 29.7 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.994e-05/0.309, allocations: 108 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.309, allocations: 15.75 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.276e-05/0.3091, allocations: 37.7 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3093, allocations: 326.8 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.3094, allocations: 47.97 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.3096, allocations: 97.05 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.3099, allocations: 154.7 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3099, allocations: 0 / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004628/0.3104, allocations: 211.1 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.216e-05/0.3105, allocations: 33.7 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3105, allocations: 4 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.3105, allocations: 160 / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.3106, allocations: 23.92 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.3106, allocations: 0 / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.3108, allocations: 39.86 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.3109, allocations: 11.98 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001224/0.311, allocations: 121.8 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.107e-05/0.311, allocations: 11.91 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000323/0.3114, allocations: 126 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.3114, allocations: 7.984 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3114, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.3114, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004546/0.3119, allocations: 374.4 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3119, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.519e-05/0.3119, allocations: 15.98 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-05/0.312, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.312, allocations: 3.938 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.312, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.312, allocations: 7.938 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003344/0.3123, allocations: 215.4 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.509e-05/0.3124, allocations: 89.09 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.3124, allocations: 0 / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.645e-05/0.3125, allocations: 11.92 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.3126, allocations: 7.938 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.3126, allocations: 4 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.142e-05/0.3127, allocations: 95.81 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3127, allocations: 0 / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002998/0.313, allocations: 27.84 kB / 1.094 GB, free: 10.8 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001885/0.3132, allocations: 111.2 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000449/0.3136, allocations: 175.3 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3137, allocations: 0 / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.3138, allocations: 39.97 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.3141, allocations: 17.88 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003987/0.3145, allocations: 162.6 kB / 1.095 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.3148, allocations: 0.6924 MB / 1.095 GB, free: 9.539 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.309e-05/0.3148, allocations: 3.938 kB / 1.095 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.437e-05/0.3149, allocations: 11.44 kB / 1.095 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of SimCode: time 7.42e-07/0.3149, allocations: 0 / 1.095 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of Templates: time 0.004426/0.3193, allocations: 1.451 MB / 1.097 GB, free: 8.086 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches