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.008883/0.008883, allocations: 102.1 kB / 15.73 MB, free: 6.004 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.001531/0.001531, allocations: 195.3 kB / 16.68 MB, free: 5.926 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.503/1.503, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.415/2.415, allocations: 390.2 MB / 0.6648 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 59.91 kB / 0.9508 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9744/0.9756, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002069/0.9777, allocations: 0.7655 MB / 1.089 GB, free: 5.027 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001841/0.9796, allocations: 1.155 MB / 1.09 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.259e-05/0.9797, allocations: 1.156 kB / 1.09 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.593e-05/0.9797, allocations: 4.641 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.927e-05/0.9798, allocations: 11.8 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006171/0.9804, allocations: 139 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.9807, allocations: 129.6 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.9809, allocations: 19.89 kB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.981, allocations: 53.47 kB / 1.09 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.9812, allocations: 47.81 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.525e-05/0.9812, allocations: 15.19 kB / 1.09 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.952e-05/0.9813, allocations: 25.08 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.061e-05/0.9814, allocations: 13.2 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.9815, allocations: 48.45 kB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.9818, allocations: 124.8 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.9818, allocations: 0.7031 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.004e-06/0.9818, allocations: 0 / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.192e-06/0.9818, allocations: 0 / 1.09 GB, free: 3.895 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.0006848/0.9825, allocations: 418.9 kB / 1.091 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.9825, allocations: 13.41 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.447e-05/0.9826, allocations: 11 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.9827, allocations: 170.6 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.9827, allocations: 3.469 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/0.9828, allocations: 12.84 kB / 1.091 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.983, allocations: 72.36 kB / 1.091 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.983, allocations: 5.156 kB / 1.091 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.9831, allocations: 4.547 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.9831, allocations: 5.172 kB / 1.091 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001947/0.9833, allocations: 49.81 kB / 1.091 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004947/0.9838, allocations: 354.8 kB / 1.091 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.984, allocations: 55.91 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.597e-05/0.9841, allocations: 34.33 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.9841, allocations: 4 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002459/0.9843, allocations: 88.89 kB / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 2.284e-06/0.9844, allocations: 0 / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004798/0.9848, allocations: 150.7 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.9849, allocations: 53.41 kB / 1.092 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.613e-05/0.985, allocations: 121.8 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.985, allocations: 28.33 kB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.181e-05/0.9851, allocations: 102.6 kB / 1.092 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.9851, allocations: 12.53 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.591e-05/0.9852, allocations: 38.23 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.078e-05/0.9853, allocations: 324 kB / 1.092 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.9855, allocations: 53.31 kB / 1.092 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.9857, allocations: 95.38 kB / 1.093 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.9859, allocations: 157.6 kB / 1.093 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.986, allocations: 0 / 1.093 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005065/0.9865, allocations: 215.4 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.06e-05/0.9865, allocations: 34.34 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.9865, allocations: 2.375 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.701e-05/0.9866, allocations: 2.219 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.9867, allocations: 14.5 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.9867, allocations: 5.922 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.987, allocations: 43.19 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.987, allocations: 7.969 kB / 1.093 GB, free: 1.711 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.0001023/0.9871, allocations: 126.5 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.04e-05/0.9871, allocations: 7.594 kB / 1.093 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003692/0.9875, allocations: 126.6 kB / 1.093 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.9875, allocations: 5.906 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.9875, allocations: 0 / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.9875, allocations: 0.7969 kB / 1.093 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004955/0.988, allocations: 375.6 kB / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.9881, allocations: 0 / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.666e-05/0.9881, allocations: 10.23 kB / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.9881, allocations: 1.062 kB / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.9882, allocations: 1.797 kB / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.9882, allocations: 0.9688 kB / 1.094 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.9882, allocations: 12.47 kB / 1.094 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003692/0.9886, allocations: 216.8 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.9886, allocations: 83.98 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.9886, allocations: 1.984 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.789e-05/0.9887, allocations: 7.312 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.033e-05/0.9888, allocations: 9.562 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.9888, allocations: 3.016 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.511e-05/0.9889, allocations: 98.89 kB / 1.094 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9889, allocations: 0.7812 kB / 1.094 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000306/0.9892, allocations: 24.59 kB / 1.094 GB, free: 0.8203 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.0001691/0.9894, allocations: 101.1 kB / 1.094 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004778/0.9898, allocations: 180.9 kB / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.9899, allocations: 320 / 1.094 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.99, allocations: 43.02 kB / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.9903, allocations: 19.97 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004363/0.9908, allocations: 173 kB / 1.095 GB, free: 480 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.9911, allocations: 0.69 MB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.78e-05/0.9911, allocations: 9.516 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.74e-05/0.9911, allocations: 10.41 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.9911, allocations: 0 / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of Templates: time 0.005396/0.9965, allocations: 1.45 MB / 1.097 GB, free: 15.61 MB / 0.8731 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