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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001909/0.001909, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002431/0.002431, allocations: 199.2 kB / 16.14 MB, free: 6.719 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.61/1.61, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.956/2.956, allocations: 437 MB / 0.71 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002086/0.002086, allocations: 63.91 kB / 0.8686 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9088/0.9109, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00275/0.9137, allocations: 0.7933 MB / 1.017 GB, free: 1.996 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002146/0.9159, allocations: 1.191 MB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.2e-05/0.916, allocations: 8 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.159e-05/0.916, allocations: 3.984 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.257e-05/0.9161, allocations: 7.922 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005994/0.9167, allocations: 127.6 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001832/0.9169, allocations: 103.8 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.9171, allocations: 20 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.9172, allocations: 43.84 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.9173, allocations: 39.81 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.005e-05/0.9174, allocations: 8 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.551e-05/0.9175, allocations: 19.98 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.795e-05/0.9175, allocations: 7.984 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.689e-05/0.9176, allocations: 39.84 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002273/0.9178, allocations: 103.7 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.9178, allocations: 0 / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of FrontEnd: time 2.174e-06/0.9178, allocations: 0 / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.9179, allocations: 0 / 1.019 GB, free: 276 kB / 0.7637 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.000855/0.9187, allocations: 414.9 kB / 1.019 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.9188, allocations: 8.031 kB / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.825e-05/0.9189, allocations: 12.84 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.9191, allocations: 172.3 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.9191, allocations: 4.375 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.109e-05/0.9191, allocations: 8.375 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.9194, allocations: 70.14 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.9194, allocations: 4.188 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.9194, allocations: 7.938 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.9194, allocations: 0 / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.9196, allocations: 43.95 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006405/0.9203, allocations: 328.6 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000175/0.9205, allocations: 54.5 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.9206, allocations: 28.92 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.9206, allocations: 0 / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.9209, allocations: 83.36 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.9209, allocations: 4 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005081/0.9214, allocations: 137.5 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.9215, allocations: 55.41 kB / 1.02 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.9216, allocations: 113.8 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/0.9217, allocations: 29.7 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.044e-05/0.9218, allocations: 92.2 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.371e-05/0.9218, allocations: 19.75 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-05/0.9219, allocations: 37.69 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001748/0.9221, allocations: 322.8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.9222, allocations: 47.95 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.9224, allocations: 71.41 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003438/0.9228, allocations: 137 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.9228, allocations: 0 / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004995/0.9233, allocations: 199.1 kB / 1.021 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.91e-05/0.9234, allocations: 38.17 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.9234, allocations: 8 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.9234, allocations: 4 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.9235, allocations: 11.98 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.9235, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.9238, allocations: 39.8 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.139e-05/0.9238, allocations: 15.98 kB / 1.022 GB, free: 13.43 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.0001609/0.924, allocations: 125.7 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.924, allocations: 4 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003407/0.9243, allocations: 106 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.9244, allocations: 96 / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.9244, allocations: 7.984 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.9244, allocations: 3.984 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005586/0.9249, allocations: 366.4 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.925, allocations: 0 / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.276e-05/0.925, allocations: 8 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.925, allocations: 4 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.9251, allocations: 3.984 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.9251, allocations: 0 / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.9251, allocations: 0 / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/0.9254, allocations: 215.3 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.538e-05/0.9255, allocations: 81.02 kB / 1.022 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.9256, allocations: 4 kB / 1.022 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.499e-05/0.9257, allocations: 11.98 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.984e-05/0.9257, allocations: 7.875 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.9257, allocations: 7.984 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.084e-05/0.9258, allocations: 87.28 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9258, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000273/0.9261, allocations: 27.94 kB / 1.023 GB, free: 12.27 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.0002449/0.9264, allocations: 107.8 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004473/0.9268, allocations: 163.3 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.9268, allocations: 4 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002001/0.927, allocations: 36.25 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.9274, allocations: 17.61 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005118/0.9279, allocations: 173 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005172/0.9284, allocations: 0.6887 MB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.945e-05/0.9285, allocations: 8 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.849e-05/0.9285, allocations: 11.44 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of SimCode: time 2.91e-07/0.9285, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of Templates: time 0.005571/0.9341, allocations: 1.276 MB / 1.025 GB, free: 9.734 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=400 -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/jenkins/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