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.00162/0.00162, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002402/0.002402, allocations: 216.4 kB / 22.25 MB, free: 5.129 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.585/1.585, allocations: 230.6 MB / 256 MB, free: 7.973 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.257/3.257, allocations: 0.49 GB / 0.7951 GB, free: 33.5 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.002096/0.002096, allocations: 74.5 kB / 1.154 GB, free: 25.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.357, allocations: 176.1 MB / 1.326 GB, free: 1.945 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.0036/0.3606, allocations: 0.7355 MB / 1.327 GB, free: 1.215 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003054/0.3637, allocations: 1.244 MB / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.317e-05/0.3638, allocations: 0 / 1.328 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.701e-05/0.3638, allocations: 3.938 kB / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000156/0.364, allocations: 7.875 kB / 1.328 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000906/0.3649, allocations: 153.2 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003121/0.3652, allocations: 115.8 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.3653, allocations: 11.98 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001499/0.3654, allocations: 47.91 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.3656, allocations: 51.81 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.983e-05/0.3656, allocations: 8 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.3658, allocations: 31.97 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.916e-05/0.3658, allocations: 8 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.366, allocations: 43.84 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003108/0.3663, allocations: 115.9 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.3663, allocations: 4 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.674e-06/0.3663, allocations: 0 / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.308e-05/0.3663, allocations: 0 / 1.328 GB, free: 15.37 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.0009143/0.3672, allocations: 339.8 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.3673, allocations: 8.031 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.268e-05/0.3673, allocations: 34.73 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.3675, allocations: 8.938 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.3676, allocations: 122.4 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.3676, allocations: 8.375 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/0.3677, allocations: 4.375 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002986/0.368, allocations: 66.22 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.368, allocations: 7.938 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.368, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.368, allocations: 0 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.3683, allocations: 43.95 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007283/0.3691, allocations: 307.6 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002622/0.3693, allocations: 50.55 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.3695, allocations: 28.92 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.3695, allocations: 0 / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003787/0.3699, allocations: 91.3 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 2.746e-06/0.3699, allocations: 0 / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0007789/0.3707, allocations: 137.6 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.3707, allocations: 51.41 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.3709, allocations: 117.8 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.706e-05/0.3709, allocations: 33.7 kB / 1.33 GB, free: 13.76 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.689e-05/0.371, allocations: 92.12 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.3711, allocations: 19.86 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.3712, allocations: 37.7 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001912/0.3714, allocations: 322.8 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.3716, allocations: 51.91 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.3719, allocations: 75.39 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004615/0.3724, allocations: 137 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3724, allocations: 0 / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0007833/0.3732, allocations: 199.2 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.506e-05/0.3732, allocations: 35.27 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3732, allocations: 4 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.3733, allocations: 0 / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.3734, allocations: 11.98 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/0.3734, allocations: 7.938 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003597/0.3738, allocations: 39.97 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.3738, allocations: 8 kB / 1.331 GB, free: 12.68 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.0001574/0.374, allocations: 122.3 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.88e-05/0.374, allocations: 7.938 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005103/0.3745, allocations: 106 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.3745, allocations: 4 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3745, allocations: 480 / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3745, allocations: 7.938 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007408/0.3753, allocations: 329.6 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.3753, allocations: 0 / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.3754, allocations: 19.98 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.3754, allocations: 3.938 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.3754, allocations: 0 / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3754, allocations: 0 / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.3754, allocations: 3.938 kB / 1.331 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000543/0.376, allocations: 207.4 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.672e-05/0.376, allocations: 4 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.376, allocations: 7.922 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.3762, allocations: 8 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.478e-05/0.3762, allocations: 11.92 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.3762, allocations: 0 / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001416/0.3764, allocations: 95.27 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3764, allocations: 0 / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0005177/0.3769, allocations: 23.94 kB / 1.332 GB, free: 11.65 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.001168/0.3781, allocations: 0.7436 MB / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006261/0.3787, allocations: 159.3 kB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3787, allocations: 0 / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.3789, allocations: 27.98 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.3794, allocations: 19.97 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003699/0.3831, allocations: 1.645 MB / 1.334 GB, free: 8.918 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.3836, allocations: 0.6885 MB / 1.335 GB, free: 8.203 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.424e-05/0.3836, allocations: 0 / 1.335 GB, free: 8.203 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.385e-05/0.3837, allocations: 23.42 kB / 1.335 GB, free: 8.18 MB / 1.029 GB Notification: Performance of SimCode: time 9.61e-07/0.3837, allocations: 0 / 1.335 GB, free: 8.18 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03923/0.4229, allocations: 2.592 MB / 1.337 GB, free: 5.734 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.86, allocations: 10.72 kB / 1.337 GB, free: 5.727 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.697828995995224]