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.001622/0.001622, allocations: 107.8 kB / 16.27 MB, free: 5.98 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.001811/0.001811, allocations: 196.2 kB / 17.2 MB, free: 5.605 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.4/1.4, allocations: 222.9 MB / 240.9 MB, free: 15.17 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.369/2.369, allocations: 390.3 MB / 0.6653 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.001671, allocations: 65.41 kB / 0.8132 GB, free: 32.93 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2924, allocations: 140.4 MB / 0.9503 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002235/0.2947, allocations: 0.7306 MB / 0.951 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001546/0.2962, allocations: 1.177 MB / 0.9521 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.699e-05/0.2963, allocations: 0 / 0.9521 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.649e-05/0.2964, allocations: 3.938 kB / 0.9521 GB, free: 6.902 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.531e-05/0.2965, allocations: 23.8 kB / 0.9522 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006496/0.2972, allocations: 135.6 kB / 0.9523 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001832/0.2974, allocations: 123.8 kB / 0.9524 GB, free: 6.629 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.2975, allocations: 19.97 kB / 0.9524 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.2976, allocations: 43.91 kB / 0.9525 GB, free: 6.566 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.237e-05/0.2977, allocations: 43.88 kB / 0.9525 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.098e-05/0.2978, allocations: 12 kB / 0.9525 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.546e-05/0.2978, allocations: 23.92 kB / 0.9526 GB, free: 6.488 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.876e-05/0.2979, allocations: 15.94 kB / 0.9526 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.558e-05/0.298, allocations: 43.83 kB / 0.9526 GB, free: 6.43 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002268/0.2982, allocations: 103.8 kB / 0.9527 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2982, allocations: 4 kB / 0.9527 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2982, allocations: 0 / 0.9527 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.2982, allocations: 0 / 0.9527 GB, free: 6.324 MB / 0.7325 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.0006882/0.2989, allocations: 405.3 kB / 0.9531 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.299, allocations: 8.031 kB / 0.9531 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.894e-05/0.299, allocations: 8.844 kB / 0.9531 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.2992, allocations: 176.3 kB / 0.9533 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.2992, allocations: 4.375 kB / 0.9533 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.2992, allocations: 8.375 kB / 0.9533 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.2995, allocations: 66.22 kB / 0.9534 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.2995, allocations: 8.062 kB / 0.9534 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.2995, allocations: 3.938 kB / 0.9534 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.2995, allocations: 4 kB / 0.9534 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.2997, allocations: 39.95 kB / 0.9534 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005002/0.3002, allocations: 332.6 kB / 0.9537 GB, free: 5.133 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.3004, allocations: 58.42 kB / 0.9538 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.3005, allocations: 32.92 kB / 0.9538 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.3005, allocations: 0 / 0.9538 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.3008, allocations: 87.36 kB / 0.9539 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.3008, allocations: 0 / 0.9539 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0004634/0.3012, allocations: 133.5 kB / 0.954 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.3013, allocations: 55.34 kB / 0.9541 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.844e-05/0.3014, allocations: 109.8 kB / 0.9542 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.3014, allocations: 37.7 kB / 0.9542 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.659e-05/0.3015, allocations: 100.1 kB / 0.9543 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.3015, allocations: 11.81 kB / 0.9543 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.372e-05/0.3016, allocations: 33.7 kB / 0.9544 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3018, allocations: 322.8 kB / 0.9547 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.3019, allocations: 47.97 kB / 0.9547 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.3021, allocations: 79.39 kB / 0.9548 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002697/0.3024, allocations: 125 kB / 0.9549 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3024, allocations: 0 / 0.9549 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000441/0.3029, allocations: 199.2 kB / 0.9551 GB, free: 3.609 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.178e-05/0.3029, allocations: 41.69 kB / 0.9551 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3029, allocations: 4 kB / 0.9551 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.3029, allocations: 4 kB / 0.9551 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.733e-05/0.303, allocations: 15.92 kB / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.3031, allocations: 0 / 0.9552 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.3033, allocations: 36.33 kB / 0.9552 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.3034, allocations: 16.06 kB / 0.9552 GB, free: 3.488 MB / 0.7325 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 0.0001/0.3035, allocations: 117.8 kB / 0.9553 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.3035, allocations: 7.984 kB / 0.9553 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003087/0.3038, allocations: 110 kB / 0.9554 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3038, allocations: 3.938 kB / 0.9554 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3038, allocations: 0 / 0.9554 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.3038, allocations: 4.094 kB / 0.9554 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004596/0.3043, allocations: 362.8 kB / 0.9558 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3043, allocations: 7.922 kB / 0.9558 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001471/0.3045, allocations: 19.92 kB / 0.9558 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.3045, allocations: 0 / 0.9558 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.3045, allocations: 4 kB / 0.9558 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3045, allocations: 0 / 0.9558 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3045, allocations: 0 / 0.9558 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.3049, allocations: 215.4 kB / 0.956 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.49e-05/0.3049, allocations: 85 kB / 0.9561 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.3049, allocations: 0 / 0.9561 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.713e-05/0.305, allocations: 4 kB / 0.9561 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.873e-05/0.3051, allocations: 15.92 kB / 0.9561 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.3051, allocations: 4 kB / 0.9561 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.528e-05/0.3052, allocations: 91.27 kB / 0.9562 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3052, allocations: 4 kB / 0.9562 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002856/0.3055, allocations: 16 kB / 0.9562 GB, free: 2.332 MB / 0.7325 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.0001724/0.3057, allocations: 111.2 kB / 0.9563 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000421/0.3061, allocations: 163.3 kB / 0.9565 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3061, allocations: 4.125 kB / 0.9565 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.3062, allocations: 39.97 kB / 0.9565 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.3065, allocations: 14.05 kB / 0.9566 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003998/0.3069, allocations: 176.1 kB / 0.9567 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.3074, allocations: 0.7 MB / 0.9574 GB, free: 1.051 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.058e-05/0.3074, allocations: 15.44 kB / 0.9574 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of SimCode: time 5.31e-07/0.3074, allocations: 3.938 kB / 0.9574 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of Templates: time 0.003099/0.3105, allocations: 1.196 MB / 0.9586 GB, free: 15.84 MB / 0.7481 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