Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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: 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_10_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_10_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.009342/0.009342, allocations: 99.34 kB / 15.73 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.002022/0.002022, allocations: 193.2 kB / 16.67 MB, free: 5.938 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.567/1.567, allocations: 222.9 MB / 240.4 MB, free: 4.332 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 3.194/3.194, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 59.91 kB / 1.019 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5262/0.5277, allocations: 151.6 MB / 1.167 GB, free: 6.812 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.003453/0.5313, allocations: 0.7642 MB / 1.167 GB, free: 6.039 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002499/0.5338, allocations: 1.155 MB / 1.168 GB, free: 4.867 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.534, allocations: 4 kB / 1.168 GB, free: 4.863 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 6.014e-05/0.5341, allocations: 7.875 kB / 1.168 GB, free: 4.855 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.5343, allocations: 7.922 kB / 1.168 GB, free: 4.848 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009768/0.5353, allocations: 143.2 kB / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003481/0.5356, allocations: 131.8 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.5358, allocations: 32.09 kB / 1.169 GB, free: 4.547 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.536, allocations: 43.91 kB / 1.169 GB, free: 4.504 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.5362, allocations: 51.81 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.792e-05/0.5363, allocations: 12 kB / 1.169 GB, free: 4.441 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.5364, allocations: 23.97 kB / 1.169 GB, free: 4.418 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.551e-05/0.5365, allocations: 19.92 kB / 1.169 GB, free: 4.398 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.5366, allocations: 43.86 kB / 1.169 GB, free: 4.355 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002797/0.5369, allocations: 115.6 kB / 1.169 GB, free: 4.242 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5369, allocations: 0 / 1.169 GB, free: 4.242 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.665e-06/0.5369, allocations: 0 / 1.169 GB, free: 4.242 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.5369, allocations: 4 kB / 1.169 GB, free: 4.238 MB / 0.92 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.0008375/0.5378, allocations: 424.8 kB / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.5378, allocations: 12.03 kB / 1.17 GB, free: 3.758 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.75e-05/0.5379, allocations: 8.891 kB / 1.17 GB, free: 3.75 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001674/0.5381, allocations: 180.3 kB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.5381, allocations: 4.375 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.5381, allocations: 8.375 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002371/0.5384, allocations: 70.22 kB / 1.17 GB, free: 3.449 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.5384, allocations: 11.88 kB / 1.17 GB, free: 3.438 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.5384, allocations: 4 kB / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.5384, allocations: 3.938 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.5386, allocations: 43.95 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006346/0.5393, allocations: 344.7 kB / 1.17 GB, free: 3 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/0.5395, allocations: 70.48 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.847e-05/0.5396, allocations: 24.97 kB / 1.17 GB, free: 2.895 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.5396, allocations: 3.984 kB / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.5399, allocations: 91.31 kB / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.974e-06/0.5399, allocations: 4 kB / 1.17 GB, free: 2.785 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.000469/0.5403, allocations: 145.5 kB / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.5404, allocations: 55.41 kB / 1.171 GB, free: 2.57 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.5405, allocations: 121.8 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.5406, allocations: 33.7 kB / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.162e-05/0.5406, allocations: 88.14 kB / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.775e-05/0.5406, allocations: 23.84 kB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.528e-05/0.5407, allocations: 41.7 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.5409, allocations: 322.8 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.541, allocations: 51.91 kB / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.5412, allocations: 89.11 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.5415, allocations: 150.7 kB / 1.171 GB, free: 1.59 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.5415, allocations: 0 / 1.171 GB, free: 1.59 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004582/0.542, allocations: 215.1 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 6.147e-05/0.5421, allocations: 41.69 kB / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.5421, allocations: 0 / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.5421, allocations: 4 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.5422, allocations: 15.98 kB / 1.172 GB, free: 1.301 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.5422, allocations: 0 / 1.172 GB, free: 1.301 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.5425, allocations: 40.05 kB / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.5425, allocations: 12 kB / 1.172 GB, free: 1.25 MB / 0.92 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.0001164/0.5426, allocations: 128.1 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.5426, allocations: 11.89 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000324/0.543, allocations: 126 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.543, allocations: 4 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.543, allocations: 4 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.543, allocations: 0 / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004727/0.5435, allocations: 386.8 kB / 1.172 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.5435, allocations: 0 / 1.172 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.07e-05/0.5436, allocations: 7.984 kB / 1.172 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.5436, allocations: 4 kB / 1.172 GB, free: 0.5234 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.5436, allocations: 4.047 kB / 1.172 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.5436, allocations: 80 / 1.172 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/0.5436, allocations: 11.91 kB / 1.172 GB, free: 0.5078 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003467/0.544, allocations: 207.4 kB / 1.173 GB, free: 296 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-05/0.544, allocations: 85.06 kB / 1.173 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.5441, allocations: 0 / 1.173 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.162e-05/0.5442, allocations: 15.98 kB / 1.173 GB, free: 176 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.5442, allocations: 11.92 kB / 1.173 GB, free: 164 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.5443, allocations: 4 kB / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of sorting global known variables: time 6.429e-05/0.5443, allocations: 91.81 kB / 1.173 GB, free: 68 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5443, allocations: 0 / 1.173 GB, free: 68 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002843/0.5446, allocations: 27.94 kB / 1.173 GB, free: 40 kB / 0.92 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.0001866/0.5448, allocations: 99.3 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003962/0.5452, allocations: 179.2 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5452, allocations: 0 / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000135/0.5454, allocations: 43.91 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.5457, allocations: 19.92 kB / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004346/0.5461, allocations: 175.2 kB / 1.173 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.5465, allocations: 0.6963 MB / 1.174 GB, free: 14.76 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.849e-05/0.5465, allocations: 7.984 kB / 1.174 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.255e-05/0.5466, allocations: 11.44 kB / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.5466, allocations: 3.938 kB / 1.174 GB, free: 14.74 MB / 0.9356 GB Notification: Performance of Templates: time 0.004928/0.5515, allocations: 1.44 MB / 1.175 GB, free: 13.31 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches