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.001268/0.001268, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009649/0.009649, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.529/1.529, allocations: 223.3 MB / 240.3 MB, free: 5.367 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.501/2.501, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.000355, allocations: 8 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8731/0.8734, allocations: 142.4 MB / 0.9551 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0009629/0.8745, allocations: 492.6 kB / 0.9555 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001354/0.8758, allocations: 1.143 MB / 0.9566 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.739e-05/0.8759, allocations: 7.938 kB / 0.9566 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.115e-05/0.8759, allocations: 9.234 kB / 0.9567 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.679e-05/0.876, allocations: 5.375 kB / 0.9567 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004308/0.8764, allocations: 123.2 kB / 0.9568 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.8766, allocations: 113.3 kB / 0.9569 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.8767, allocations: 24.69 kB / 0.9569 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.702e-05/0.8768, allocations: 40.12 kB / 0.9569 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.64e-05/0.8769, allocations: 37.14 kB / 0.957 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.366e-05/0.8769, allocations: 5.594 kB / 0.957 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.458e-05/0.877, allocations: 24.34 kB / 0.957 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.413e-05/0.877, allocations: 11.53 kB / 0.957 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.815e-05/0.8771, allocations: 61.55 kB / 0.9571 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.8772, allocations: 114.9 kB / 0.9572 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.8773, allocations: 3.938 kB / 0.9572 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.114e-06/0.8773, allocations: 0 / 0.9572 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.8773, allocations: 4 kB / 0.9572 GB, free: 6.039 MB / 0.7169 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.0005145/0.8778, allocations: 401.3 kB / 0.9576 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.8778, allocations: 9.5 kB / 0.9576 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.09e-05/0.8779, allocations: 10.84 kB / 0.9576 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.676e-05/0.878, allocations: 174.2 kB / 0.9578 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.878, allocations: 9.328 kB / 0.9578 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.943e-05/0.8781, allocations: 15.03 kB / 0.9578 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.8783, allocations: 80.25 kB / 0.9579 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.8783, allocations: 5.531 kB / 0.9579 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.8783, allocations: 0 / 0.9579 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.8783, allocations: 1.406 kB / 0.9579 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.8785, allocations: 59.95 kB / 0.9579 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004407/0.879, allocations: 344.6 kB / 0.9583 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.8792, allocations: 65.17 kB / 0.9583 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.8793, allocations: 36.75 kB / 0.9584 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.8793, allocations: 5.75 kB / 0.9584 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002377/0.8796, allocations: 96.42 kB / 0.9585 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.482e-06/0.8796, allocations: 0 / 0.9585 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004633/0.88, allocations: 171.6 kB / 0.9586 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.8801, allocations: 56.72 kB / 0.9587 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.134e-05/0.8802, allocations: 123.4 kB / 0.9588 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.8802, allocations: 28.45 kB / 0.9588 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.393e-05/0.8802, allocations: 97.62 kB / 0.9589 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.8803, allocations: 14.47 kB / 0.9589 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.8803, allocations: 23.2 kB / 0.9589 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.208e-05/0.8804, allocations: 324.2 kB / 0.9593 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.8805, allocations: 60.36 kB / 0.9593 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.8807, allocations: 98.17 kB / 0.9594 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.881, allocations: 160.2 kB / 0.9596 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.881, allocations: 1 kB / 0.9596 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004538/0.8815, allocations: 223.8 kB / 0.9598 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/0.8815, allocations: 39 kB / 0.9598 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.8815, allocations: 2.516 kB / 0.9598 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.8816, allocations: 1.188 kB / 0.9598 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.8817, allocations: 17.45 kB / 0.9598 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.8817, allocations: 5.922 kB / 0.9598 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.8819, allocations: 55.83 kB / 0.9599 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.882, allocations: 7.469 kB / 0.9599 GB, free: 3.629 MB / 0.7169 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 7.984e-05/0.8821, allocations: 124.8 kB / 0.96 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.458e-05/0.8821, allocations: 10.55 kB / 0.96 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003147/0.8824, allocations: 138.9 kB / 0.9602 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.8824, allocations: 0.9688 kB / 0.9602 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.8824, allocations: 0 / 0.9602 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.8824, allocations: 0.9688 kB / 0.9602 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.8828, allocations: 395.5 kB / 0.9605 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.8828, allocations: 3.938 kB / 0.9605 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.083e-05/0.8829, allocations: 13.61 kB / 0.9606 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.8829, allocations: 1.375 kB / 0.9606 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.8829, allocations: 4 kB / 0.9606 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.8829, allocations: 5.375 kB / 0.9606 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.8829, allocations: 3.938 kB / 0.9606 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.8832, allocations: 222.6 kB / 0.9608 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.195e-05/0.8832, allocations: 87.77 kB / 0.9609 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.8833, allocations: 0 / 0.9609 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.746e-05/0.8834, allocations: 10.86 kB / 0.9609 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.8834, allocations: 10.67 kB / 0.9609 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.8834, allocations: 2.75 kB / 0.9609 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.525e-05/0.8835, allocations: 100 kB / 0.961 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8835, allocations: 0 / 0.961 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000268/0.8837, allocations: 22 kB / 0.961 GB, free: 2.648 MB / 0.7169 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.000131/0.8839, allocations: 106.4 kB / 0.9611 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003802/0.8843, allocations: 189.9 kB / 0.9613 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8843, allocations: 320 / 0.9613 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.8844, allocations: 53.03 kB / 0.9613 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.8847, allocations: 13.8 kB / 0.9614 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003637/0.8851, allocations: 193.8 kB / 0.9615 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.8852, allocations: 0.6937 MB / 0.9622 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.279e-05/0.8853, allocations: 7.781 kB / 0.9622 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.287e-05/0.8853, allocations: 11 kB / 0.9622 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8853, allocations: 0 / 0.9622 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of Templates: time 0.003944/0.8892, allocations: 1.297 MB / 0.9635 GB, free: 0.8594 MB / 0.7169 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