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.009532/0.009532, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.002/0.002, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.53/1.53, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.727/2.727, allocations: 437 MB / 0.7105 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001257, allocations: 59.89 kB / 1.019 GB, free: 9.445 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.174/1.175, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002149/1.177, allocations: 0.7647 MB / 1.167 GB, free: 3.117 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001465/1.179, allocations: 1.158 MB / 1.168 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.445e-05/1.179, allocations: 4 kB / 1.168 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.591e-05/1.179, allocations: 3.938 kB / 1.168 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.919e-05/1.179, allocations: 19.84 kB / 1.168 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000508/1.179, allocations: 138.4 kB / 1.169 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001906/1.18, allocations: 127.8 kB / 1.169 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/1.18, allocations: 24.16 kB / 1.169 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.186e-05/1.18, allocations: 51.84 kB / 1.169 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/1.18, allocations: 43.88 kB / 1.169 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.396e-05/1.18, allocations: 12 kB / 1.169 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.364e-05/1.18, allocations: 31.97 kB / 1.169 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/1.18, allocations: 15.92 kB / 1.169 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.564e-05/1.18, allocations: 43.86 kB / 1.169 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000193/1.18, allocations: 124 kB / 1.169 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/1.18, allocations: 4 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.934e-06/1.18, allocations: 0 / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.53e-05/1.18, allocations: 0 / 1.169 GB, free: 1.316 MB / 0.8887 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.0006253/1.181, allocations: 420.8 kB / 1.169 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/1.181, allocations: 12.03 kB / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/1.181, allocations: 8.891 kB / 1.17 GB, free: 0.832 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/1.181, allocations: 176.3 kB / 1.17 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/1.181, allocations: 8.375 kB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.626e-05/1.181, allocations: 8.375 kB / 1.17 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/1.181, allocations: 78.09 kB / 1.17 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/1.181, allocations: 7.938 kB / 1.17 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/1.182, allocations: 4 kB / 1.17 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/1.182, allocations: 0 / 1.17 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/1.182, allocations: 43.95 kB / 1.17 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005015/1.182, allocations: 344.6 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001724/1.182, allocations: 70.53 kB / 1.17 GB, free: 4 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/1.183, allocations: 28.95 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/1.183, allocations: 4 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/1.183, allocations: 91.34 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 3.116e-06/1.183, allocations: 4 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0004365/1.183, allocations: 149.6 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/1.183, allocations: 51.41 kB / 1.171 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.738e-05/1.183, allocations: 125.8 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/1.183, allocations: 29.7 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.446e-05/1.183, allocations: 88.14 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/1.184, allocations: 27.78 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.136e-05/1.184, allocations: 41.7 kB / 1.171 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001094/1.184, allocations: 326.7 kB / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/1.184, allocations: 51.97 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/1.184, allocations: 93.05 kB / 1.171 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002879/1.184, allocations: 146.8 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/1.184, allocations: 0 / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004394/1.185, allocations: 215.1 kB / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.829e-05/1.185, allocations: 37.69 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/1.185, allocations: 4 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/1.185, allocations: 0 / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/1.185, allocations: 23.92 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/1.185, allocations: 0 / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/1.185, allocations: 36.11 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/1.185, allocations: 8 kB / 1.172 GB, free: 14.32 MB / 0.9044 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.0001092/1.185, allocations: 129.7 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.805e-05/1.185, allocations: 11.94 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003038/1.186, allocations: 121.9 kB / 1.172 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/1.186, allocations: 8 kB / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/1.186, allocations: 0 / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/1.186, allocations: 0 / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004517/1.186, allocations: 382.4 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/1.186, allocations: 0 / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.105e-05/1.186, allocations: 7.984 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/1.186, allocations: 11.88 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/1.186, allocations: 0 / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/1.186, allocations: 4 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.186, allocations: 3.938 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/1.187, allocations: 207.5 kB / 1.173 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/1.187, allocations: 81.06 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/1.187, allocations: 4 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.622e-05/1.187, allocations: 7.984 kB / 1.173 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.131e-05/1.187, allocations: 19.92 kB / 1.173 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/1.187, allocations: 4 kB / 1.173 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.728e-05/1.187, allocations: 95.2 kB / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/1.187, allocations: 0 / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002716/1.187, allocations: 24 kB / 1.173 GB, free: 13.12 MB / 0.9044 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.00016/1.187, allocations: 103.2 kB / 1.173 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.00038/1.188, allocations: 179.3 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/1.188, allocations: 0 / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001222/1.188, allocations: 47.95 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/1.188, allocations: 11.92 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003917/1.189, allocations: 179.2 kB / 1.173 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002519/1.189, allocations: 0.6924 MB / 1.174 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.43e-05/1.189, allocations: 7.984 kB / 1.174 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.593e-05/1.189, allocations: 11.44 kB / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/1.189, allocations: 0 / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of Templates: time 0.004228/1.193, allocations: 1.437 MB / 1.175 GB, free: 10.4 MB / 0.9044 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