Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001621/0.001621, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.16 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.247/2.247, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 63.91 kB / 0.9515 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8883/0.8897, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002153/0.8919, allocations: 0.7344 MB / 1.089 GB, free: 5.039 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00167/0.8936, allocations: 1.187 MB / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.752e-05/0.8937, allocations: 0 / 1.09 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.346e-05/0.8938, allocations: 6.281 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.659e-05/0.8939, allocations: 4.547 kB / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.8944, allocations: 143.8 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.8947, allocations: 121.9 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.8948, allocations: 16.05 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.8949, allocations: 48.64 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.895, allocations: 54.22 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.271e-05/0.8951, allocations: 9.812 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.752e-05/0.8951, allocations: 19.73 kB / 1.091 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.746e-05/0.8952, allocations: 18.39 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.04e-05/0.8953, allocations: 38.41 kB / 1.091 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002112/0.8955, allocations: 113.8 kB / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.8955, allocations: 1.281 kB / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.734e-06/0.8955, allocations: 0 / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.8955, allocations: 0 / 1.091 GB, free: 3.91 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006114/0.8961, allocations: 406.4 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.8962, allocations: 8.844 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.8962, allocations: 10.44 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.17e-05/0.8963, allocations: 176.3 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.8963, allocations: 5.266 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.827e-05/0.8964, allocations: 7.266 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.8966, allocations: 63.3 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.8966, allocations: 1.438 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.8966, allocations: 8.594 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.8966, allocations: 5.203 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001943/0.8968, allocations: 42.88 kB / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004532/0.8973, allocations: 329.4 kB / 1.092 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.8975, allocations: 49.77 kB / 1.092 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.8976, allocations: 32.33 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.8976, allocations: 0.8125 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.8979, allocations: 82.95 kB / 1.092 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.8979, allocations: 0 / 1.092 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.00047/0.8984, allocations: 142.7 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.8984, allocations: 57.95 kB / 1.092 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.551e-05/0.8985, allocations: 113 kB / 1.093 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.8985, allocations: 28.64 kB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.529e-05/0.8986, allocations: 93.12 kB / 1.093 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.8986, allocations: 24.19 kB / 1.093 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.412e-05/0.8987, allocations: 33.69 kB / 1.093 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.768e-05/0.8987, allocations: 325.9 kB / 1.093 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.8989, allocations: 48.2 kB / 1.093 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.8991, allocations: 83.98 kB / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.8994, allocations: 126.4 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.8994, allocations: 4.688 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004429/0.8998, allocations: 194.4 kB / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/0.8999, allocations: 39.58 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.8999, allocations: 0.9688 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.8999, allocations: 0.9688 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.964e-05/0.9, allocations: 16.89 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.9, allocations: 1.719 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.9002, allocations: 34.09 kB / 1.094 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.9003, allocations: 11.41 kB / 1.094 GB, free: 1.809 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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 8.333e-05/0.9004, allocations: 125.4 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.453e-05/0.9004, allocations: 2.781 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003094/0.9007, allocations: 117 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.9007, allocations: 0.7812 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.9007, allocations: 0.75 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.9007, allocations: 1.531 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003949/0.9011, allocations: 364.5 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.9011, allocations: 1.578 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.6e-05/0.9012, allocations: 17.09 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.9012, allocations: 0.8125 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.9012, allocations: 2.203 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.9012, allocations: 0.6875 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.9013, allocations: 0.5625 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002883/0.9015, allocations: 207.4 kB / 1.094 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.869e-05/0.9016, allocations: 83 kB / 1.094 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.9016, allocations: 6.547 kB / 1.094 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.173e-05/0.9017, allocations: 6.016 kB / 1.094 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.9018, allocations: 13.39 kB / 1.094 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-06/0.9018, allocations: 3.125 kB / 1.094 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.546e-05/0.9018, allocations: 88.77 kB / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9018, allocations: 384 / 1.095 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002797/0.9021, allocations: 19.83 kB / 1.095 GB, free: 0.9414 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001326/0.9022, allocations: 117.6 kB / 1.095 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003886/0.9026, allocations: 170 kB / 1.095 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.9026, allocations: 0.9062 kB / 1.095 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.9028, allocations: 37.19 kB / 1.095 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.9031, allocations: 19.5 kB / 1.095 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003389/0.9034, allocations: 180.8 kB / 1.095 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.9036, allocations: 0.6857 MB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.327e-05/0.9037, allocations: 12.08 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of SimCode: time 4.61e-07/0.9037, allocations: 0 / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of Templates: time 0.003508/0.9072, allocations: 1.211 MB / 1.097 GB, free: 15.75 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches