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.001242/0.001242, allocations: 91.61 kB / 15.36 MB, free: 0.7344 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.01365/0.01366, allocations: 172.3 kB / 16.26 MB, free: 6.68 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.51/1.51, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.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.576/2.576, allocations: 390.9 MB / 0.6663 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003425, allocations: 12 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7921/0.7924, allocations: 142.4 MB / 0.955 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001021/0.7935, allocations: 462.8 kB / 0.9555 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001696/0.7952, allocations: 1.181 MB / 0.9566 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.22e-05/0.7953, allocations: 1.156 kB / 0.9566 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.362e-05/0.7954, allocations: 3.938 kB / 0.9566 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.205e-05/0.7954, allocations: 9.078 kB / 0.9567 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000583/0.796, allocations: 126.2 kB / 0.9568 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.7962, allocations: 105.8 kB / 0.9569 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.7963, allocations: 14.17 kB / 0.9569 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.7965, allocations: 43.41 kB / 0.9569 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.713e-05/0.7966, allocations: 33.58 kB / 0.957 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.7966, allocations: 6 kB / 0.957 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.039e-05/0.7967, allocations: 18.98 kB / 0.957 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.207e-05/0.7967, allocations: 13.89 kB / 0.957 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.85e-05/0.7968, allocations: 59.23 kB / 0.9571 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001771/0.797, allocations: 103.9 kB / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.797, allocations: 0 / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.054e-06/0.797, allocations: 0 / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.797, allocations: 0 / 0.9572 GB, free: 6.094 MB / 0.7169 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.0005837/0.7976, allocations: 397.8 kB / 0.9575 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.7977, allocations: 9.188 kB / 0.9575 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.678e-05/0.7977, allocations: 7.188 kB / 0.9576 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.234e-05/0.7978, allocations: 179.1 kB / 0.9577 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.7979, allocations: 3.094 kB / 0.9577 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.7979, allocations: 14.67 kB / 0.9577 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002202/0.7981, allocations: 68.88 kB / 0.9578 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.7982, allocations: 1.75 kB / 0.9578 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.7982, allocations: 3.938 kB / 0.9578 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.7982, allocations: 1.781 kB / 0.9578 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002054/0.7984, allocations: 56.55 kB / 0.9579 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004667/0.7989, allocations: 326.3 kB / 0.9582 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.799, allocations: 64.88 kB / 0.9582 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.829e-05/0.7992, allocations: 29.44 kB / 0.9583 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.7992, allocations: 0 / 0.9583 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002383/0.7994, allocations: 96.14 kB / 0.9584 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.7994, allocations: 3.938 kB / 0.9584 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004641/0.7999, allocations: 150.9 kB / 0.9585 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.8, allocations: 57.05 kB / 0.9586 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.587e-05/0.8001, allocations: 118.2 kB / 0.9587 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.8001, allocations: 28.11 kB / 0.9587 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.461e-05/0.8002, allocations: 91.42 kB / 0.9588 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/0.8002, allocations: 27.14 kB / 0.9588 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.53e-05/0.8002, allocations: 21.84 kB / 0.9588 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.826e-05/0.8003, allocations: 320.2 kB / 0.9591 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.8005, allocations: 51.5 kB / 0.9592 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.8006, allocations: 89.48 kB / 0.9593 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002747/0.8009, allocations: 138 kB / 0.9594 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.8009, allocations: 1.125 kB / 0.9594 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004403/0.8014, allocations: 207.6 kB / 0.9596 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/0.8014, allocations: 37.22 kB / 0.9596 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.8014, allocations: 1.844 kB / 0.9596 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.8015, allocations: 5.906 kB / 0.9596 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.8016, allocations: 13.95 kB / 0.9597 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.8016, allocations: 1.812 kB / 0.9597 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002403/0.8018, allocations: 51.98 kB / 0.9597 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.8019, allocations: 5.094 kB / 0.9597 GB, free: 3.77 MB / 0.7169 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 7.956e-05/0.802, allocations: 126.2 kB / 0.9598 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.389e-05/0.802, allocations: 6.656 kB / 0.9598 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003023/0.8023, allocations: 123.6 kB / 0.96 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.8023, allocations: 1.375 kB / 0.96 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.8023, allocations: 0 / 0.96 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.8023, allocations: 1.375 kB / 0.96 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003609/0.8027, allocations: 379.4 kB / 0.9603 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.8027, allocations: 1.375 kB / 0.9603 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.127e-05/0.8028, allocations: 12.23 kB / 0.9603 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.8028, allocations: 1.844 kB / 0.9603 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.8028, allocations: 1.375 kB / 0.9603 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.8028, allocations: 4 kB / 0.9603 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.8028, allocations: 0 / 0.9603 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002797/0.8031, allocations: 225.1 kB / 0.9606 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.019e-05/0.8031, allocations: 86.36 kB / 0.9606 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.8031, allocations: 9.359 kB / 0.9607 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.798e-05/0.8032, allocations: 6.875 kB / 0.9607 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.158e-05/0.8033, allocations: 14.67 kB / 0.9607 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-06/0.8033, allocations: 1.375 kB / 0.9607 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.736e-05/0.8033, allocations: 91.52 kB / 0.9608 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8033, allocations: 0 / 0.9608 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002619/0.8036, allocations: 23.25 kB / 0.9608 GB, free: 2.809 MB / 0.7169 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.0001611/0.8038, allocations: 102.5 kB / 0.9609 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004301/0.8042, allocations: 180.1 kB / 0.9611 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.8042, allocations: 0 / 0.9611 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.8044, allocations: 43.06 kB / 0.9611 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.8047, allocations: 22.67 kB / 0.9611 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004652/0.8052, allocations: 170.7 kB / 0.9613 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.8054, allocations: 0.6869 MB / 0.962 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.698e-05/0.8055, allocations: 8 kB / 0.962 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.761e-05/0.8055, allocations: 10.53 kB / 0.962 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of SimCode: time 7.52e-07/0.8055, allocations: 0 / 0.962 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of Templates: time 0.004662/0.8102, allocations: 1.273 MB / 0.9632 GB, free: 1.055 MB / 0.7169 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/jenkins/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