Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_10_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_10_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.001053/0.001053, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 180 kB / 16.92 MB, free: 6.652 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.485/1.485, allocations: 223.3 MB / 241 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.701/2.701, allocations: 437.8 MB / 0.7128 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003277/0.0003277, allocations: 8 kB / 0.8735 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7066/0.707, allocations: 153.8 MB / 1.024 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0009787/0.708, allocations: 465.5 kB / 1.024 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001678/0.7097, allocations: 1.187 MB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.084e-05/0.7098, allocations: 0 / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.015e-05/0.7098, allocations: 0 / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.851e-05/0.7099, allocations: 7.938 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006305/0.7105, allocations: 135.3 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.7107, allocations: 103.8 kB / 1.026 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.7108, allocations: 11.98 kB / 1.026 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.7109, allocations: 43.89 kB / 1.026 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.771e-05/0.711, allocations: 27.91 kB / 1.026 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.711, allocations: 4 kB / 1.026 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.646e-05/0.7111, allocations: 19.98 kB / 1.026 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.961e-05/0.7111, allocations: 19.92 kB / 1.026 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.829e-05/0.7112, allocations: 69.47 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.7114, allocations: 71.83 kB / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.7114, allocations: 0 / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7114, allocations: 0 / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.7114, allocations: 0 / 1.026 GB, free: 13.7 MB / 0.7794 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.0005839/0.712, allocations: 395 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.712, allocations: 12.03 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.942e-05/0.7121, allocations: 8.938 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.7122, allocations: 172.2 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.7122, allocations: 8.375 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.028e-05/0.7123, allocations: 8.375 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.7125, allocations: 70.2 kB / 1.026 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.7125, allocations: 4.188 kB / 1.026 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.7125, allocations: 3.938 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.7125, allocations: 4 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.7128, allocations: 55.89 kB / 1.027 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005183/0.7133, allocations: 324.8 kB / 1.027 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001722/0.7135, allocations: 58.48 kB / 1.027 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.7136, allocations: 28.94 kB / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.7136, allocations: 19.98 kB / 1.027 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002372/0.7139, allocations: 87.28 kB / 1.027 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.7139, allocations: 0 / 1.027 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004907/0.7144, allocations: 149.6 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.7144, allocations: 55.41 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.7146, allocations: 121.6 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.7146, allocations: 29.7 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.375e-05/0.7147, allocations: 96.12 kB / 1.027 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.598e-05/0.7147, allocations: 23.73 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-05/0.7148, allocations: 13.72 kB / 1.027 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.7149, allocations: 322.8 kB / 1.028 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.7151, allocations: 51.97 kB / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.7152, allocations: 87.39 kB / 1.028 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.7156, allocations: 145 kB / 1.028 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.7156, allocations: 0 / 1.028 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004598/0.716, allocations: 207.1 kB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.459e-05/0.7161, allocations: 33.7 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.7161, allocations: 4.062 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.7161, allocations: 4 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.7162, allocations: 19.92 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.7163, allocations: 0 / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/0.7165, allocations: 51.95 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.239e-05/0.7165, allocations: 4 kB / 1.028 GB, free: 10.8 MB / 0.7794 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.0001138/0.7167, allocations: 122.3 kB / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.91e-05/0.7167, allocations: 11.89 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003286/0.717, allocations: 122 kB / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.717, allocations: 4 kB / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.717, allocations: 0 / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.7171, allocations: 480 / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004505/0.7175, allocations: 374.5 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.7175, allocations: 0 / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.291e-05/0.7176, allocations: 11.98 kB / 1.029 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.7176, allocations: 4 kB / 1.029 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.7176, allocations: 7.938 kB / 1.029 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.7176, allocations: 3.938 kB / 1.029 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.7176, allocations: 0 / 1.029 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000322/0.718, allocations: 215.3 kB / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.718, allocations: 85.09 kB / 1.029 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.718, allocations: 7.938 kB / 1.029 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.654e-05/0.7181, allocations: 15.98 kB / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.184e-05/0.7182, allocations: 3.938 kB / 1.029 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.7182, allocations: 4 kB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.31e-05/0.7183, allocations: 91.27 kB / 1.029 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7183, allocations: 0 / 1.029 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002751/0.7186, allocations: 31.94 kB / 1.029 GB, free: 9.598 MB / 0.7794 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.0001549/0.7187, allocations: 111.2 kB / 1.03 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003914/0.7191, allocations: 171.3 kB / 1.03 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7191, allocations: 0 / 1.03 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.7193, allocations: 47.91 kB / 1.03 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.7196, allocations: 16.11 kB / 1.03 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/0.72, allocations: 205.3 kB / 1.03 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.7202, allocations: 0.6887 MB / 1.031 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.664e-05/0.7203, allocations: 15.44 kB / 1.031 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.7203, allocations: 0 / 1.031 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of Templates: time 0.003056/0.7233, allocations: 1.185 MB / 1.032 GB, free: 7.105 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches