Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 216.3 kB / 22.24 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.256/3.256, allocations: 0.49 GB / 0.7951 GB, free: 35.48 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002152/0.002152, allocations: 70.95 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3762, allocations: 176.1 MB / 1.326 GB, free: 1.516 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002279/0.3785, allocations: 0.7199 MB / 1.327 GB, free: 0.8008 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00168/0.3802, allocations: 1.209 MB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.18e-05/0.3802, allocations: 4 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.796e-05/0.3803, allocations: 3.938 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.685e-05/0.3803, allocations: 19.86 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005325/0.3809, allocations: 135.4 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.3811, allocations: 119.8 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.832e-05/0.3811, allocations: 11.98 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.54e-05/0.3812, allocations: 51.84 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.3814, allocations: 47.81 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.591e-05/0.3814, allocations: 16 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.314e-05/0.3814, allocations: 23.98 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.491e-05/0.3815, allocations: 8 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.377e-05/0.3815, allocations: 43.83 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.3818, allocations: 116 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.3818, allocations: 0 / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3818, allocations: 0 / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.3818, allocations: 0 / 1.328 GB, free: 14.99 MB / 1.029 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.0006449/0.3824, allocations: 335.8 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3824, allocations: 12.03 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.2e-05/0.3825, allocations: 42.73 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.792e-05/0.3826, allocations: 4.938 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.3827, allocations: 126.3 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.3827, allocations: 4.375 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.3827, allocations: 12.38 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002032/0.3829, allocations: 58.22 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.3829, allocations: 7.938 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/0.383, allocations: 4 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.383, allocations: 0 / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.3832, allocations: 43.95 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005027/0.3837, allocations: 283.7 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/0.3838, allocations: 46.56 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.812e-05/0.3839, allocations: 28.92 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.3839, allocations: 0 / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002782/0.3842, allocations: 91.3 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.3842, allocations: 0 / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004558/0.3847, allocations: 137.6 kB / 1.329 GB, free: 13.63 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.3847, allocations: 55.41 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.3848, allocations: 117.8 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.3849, allocations: 25.7 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.967e-05/0.3849, allocations: 88.14 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.385, allocations: 23.8 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.751e-05/0.385, allocations: 41.69 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.3852, allocations: 318.8 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.3854, allocations: 81.66 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.3856, allocations: 109 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.3859, allocations: 133 kB / 1.33 GB, free: 12.57 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3859, allocations: 0 / 1.33 GB, free: 12.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004737/0.3863, allocations: 233 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.572e-05/0.3864, allocations: 33.7 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.3864, allocations: 0 / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3864, allocations: 4 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.3865, allocations: 11.98 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.3865, allocations: 0 / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.3867, allocations: 51.84 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.3868, allocations: 8 kB / 1.331 GB, free: 12.21 MB / 1.029 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.0001098/0.3869, allocations: 121.6 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.717e-05/0.3869, allocations: 11.94 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003152/0.3872, allocations: 118 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3872, allocations: 0 / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3872, allocations: 480 / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3872, allocations: 0 / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004485/0.3877, allocations: 333.5 kB / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3877, allocations: 0 / 1.331 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.48e-05/0.3877, allocations: 11.98 kB / 1.331 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3877, allocations: 3.938 kB / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.3877, allocations: 0 / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.3877, allocations: 4 kB / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.3877, allocations: 3.938 kB / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003235/0.3881, allocations: 207.4 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.316e-06/0.3881, allocations: 0 / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.3881, allocations: 11.98 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-05/0.3882, allocations: 4 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/0.3882, allocations: 7.922 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.966e-06/0.3882, allocations: 4 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.888e-05/0.3883, allocations: 91.27 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3883, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002881/0.3886, allocations: 27.94 kB / 1.332 GB, free: 11.18 MB / 1.029 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.0006685/0.3893, allocations: 0.7402 MB / 1.332 GB, free: 10.42 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004354/0.3897, allocations: 189 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3897, allocations: 0 / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.3898, allocations: 35.95 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.3901, allocations: 24.06 kB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002248/0.3924, allocations: 1.758 MB / 1.334 GB, free: 8.27 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.679e-05/0.3924, allocations: 67.34 kB / 1.334 GB, free: 8.184 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.566e-05/0.3925, allocations: 11.98 kB / 1.334 GB, free: 8.172 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.393e-05/0.3925, allocations: 19.44 kB / 1.334 GB, free: 8.152 MB / 1.029 GB Notification: Performance of SimCode: time 7.41e-07/0.3925, allocations: 0 / 1.334 GB, free: 8.152 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03087/0.4234, allocations: 3.148 MB / 1.338 GB, free: 5.164 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.57, allocations: 4.812 kB / 1.338 GB, free: 5.164 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.272699543013005]