Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.00132/0.00132, allocations: 78.09 kB / 19.76 MB, free: 1.875 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.001444/0.001444, allocations: 156.2 kB / 23.01 MB, free: 4.602 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.512/1.512, allocations: 177.2 MB / 203.4 MB, free: 8.918 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.704/2.704, allocations: 359.1 MB / 0.6044 GB, free: 14.85 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [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.002985/0.002985, allocations: 63.91 kB / 0.9515 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3818, allocations: 169.9 MB / 1.117 GB, free: 2.566 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002233/0.384, allocations: 0.6761 MB / 1.118 GB, free: 1.891 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.3855, allocations: 1.104 MB / 1.119 GB, free: 0.7734 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.07e-05/0.3856, allocations: 0 / 1.119 GB, free: 0.7734 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.769e-05/0.3856, allocations: 3.938 kB / 1.119 GB, free: 0.7695 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.723e-05/0.3857, allocations: 7.938 kB / 1.119 GB, free: 0.7617 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.386, allocations: 55.81 kB / 1.119 GB, free: 0.707 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.3861, allocations: 59.84 kB / 1.119 GB, free: 0.6484 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.896e-05/0.3862, allocations: 12 kB / 1.119 GB, free: 0.6367 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.108e-05/0.3863, allocations: 35.89 kB / 1.119 GB, free: 0.6016 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.459e-05/0.3863, allocations: 27.84 kB / 1.119 GB, free: 0.5742 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.3864, allocations: 8 kB / 1.119 GB, free: 0.5664 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.922e-05/0.3864, allocations: 20 kB / 1.119 GB, free: 0.5469 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.059e-05/0.3865, allocations: 15.97 kB / 1.119 GB, free: 0.5312 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.425e-05/0.3865, allocations: 27.86 kB / 1.119 GB, free: 0.5039 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001657/0.3867, allocations: 79.69 kB / 1.12 GB, free: 436 kB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3867, allocations: 0 / 1.12 GB, free: 436 kB / 1.061 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3867, allocations: 0 / 1.12 GB, free: 436 kB / 1.061 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.3867, allocations: 0 / 1.12 GB, free: 436 kB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000643/0.3873, allocations: 310.1 kB / 1.12 GB, free: 92 kB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3874, allocations: 16.02 kB / 1.12 GB, free: 76 kB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.446e-05/0.3875, allocations: 12.88 kB / 1.12 GB, free: 64 kB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.3876, allocations: 118.4 kB / 1.12 GB, free: 15.92 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.3876, allocations: 384 / 1.12 GB, free: 15.92 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.045e-05/0.3876, allocations: 12.38 kB / 1.12 GB, free: 15.91 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/0.3879, allocations: 78.2 kB / 1.12 GB, free: 15.83 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.3879, allocations: 4.188 kB / 1.12 GB, free: 15.82 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.3879, allocations: 3.938 kB / 1.12 GB, free: 15.82 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.3879, allocations: 0 / 1.12 GB, free: 15.82 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.3881, allocations: 55.95 kB / 1.12 GB, free: 15.77 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004713/0.3886, allocations: 248.4 kB / 1.12 GB, free: 15.49 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.3888, allocations: 66.55 kB / 1.12 GB, free: 15.42 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.3889, allocations: 44.77 kB / 1.12 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.3889, allocations: 0 / 1.12 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.3892, allocations: 99.59 kB / 1.121 GB, free: 15.26 MB / 1.076 GB Notification: Performance of pre-optimization done (n=10): time 1.263e-06/0.3892, allocations: 3.938 kB / 1.121 GB, free: 15.26 MB / 1.076 GB Notification: Performance of matching and sorting (n=10): time 0.0004942/0.3897, allocations: 169.5 kB / 1.121 GB, free: 15.09 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.3897, allocations: 51.41 kB / 1.121 GB, free: 15.02 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.963e-05/0.3898, allocations: 109.8 kB / 1.121 GB, free: 14.91 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.3898, allocations: 37.7 kB / 1.121 GB, free: 14.86 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.503e-05/0.3899, allocations: 88.36 kB / 1.121 GB, free: 14.77 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.3899, allocations: 23.8 kB / 1.121 GB, free: 14.75 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.236e-05/0.39, allocations: 33.7 kB / 1.121 GB, free: 14.71 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3901, allocations: 322.8 kB / 1.121 GB, free: 14.38 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.3902, allocations: 31.98 kB / 1.121 GB, free: 14.35 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.3904, allocations: 62.53 kB / 1.121 GB, free: 14.28 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002499/0.3906, allocations: 106.5 kB / 1.122 GB, free: 14.17 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3906, allocations: 384 / 1.122 GB, free: 14.17 MB / 1.076 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003196/0.3909, allocations: 149.7 kB / 1.122 GB, free: 14.02 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3909, allocations: 4 kB / 1.122 GB, free: 14.01 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.391, allocations: 0 / 1.122 GB, free: 14.01 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.391, allocations: 7.938 kB / 1.122 GB, free: 14 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.3911, allocations: 27.98 kB / 1.122 GB, free: 13.98 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.3911, allocations: 4 kB / 1.122 GB, free: 13.97 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.499e-05/0.3912, allocations: 15.88 kB / 1.122 GB, free: 13.96 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.3912, allocations: 8 kB / 1.122 GB, free: 13.95 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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 9.983e-05/0.3913, allocations: 125.8 kB / 1.122 GB, free: 13.82 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.3913, allocations: 0 / 1.122 GB, free: 13.82 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003516/0.3917, allocations: 146 kB / 1.122 GB, free: 13.67 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3917, allocations: 0 / 1.122 GB, free: 13.67 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3917, allocations: 4 kB / 1.122 GB, free: 13.66 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3917, allocations: 0 / 1.122 GB, free: 13.66 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005124/0.3922, allocations: 354 kB / 1.122 GB, free: 13.28 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3922, allocations: 0 / 1.122 GB, free: 13.28 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.311e-05/0.3923, allocations: 19.92 kB / 1.122 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3923, allocations: 0 / 1.122 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.3923, allocations: 0 / 1.122 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3923, allocations: 4 kB / 1.122 GB, free: 13.26 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.3923, allocations: 3.984 kB / 1.122 GB, free: 13.25 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003729/0.3926, allocations: 243.3 kB / 1.123 GB, free: 13 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.146e-05/0.3927, allocations: 8 kB / 1.123 GB, free: 12.99 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.3927, allocations: 0 / 1.123 GB, free: 12.99 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.3928, allocations: 7.984 kB / 1.123 GB, free: 12.98 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.3928, allocations: 12.27 kB / 1.123 GB, free: 12.97 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.3928, allocations: 4 kB / 1.123 GB, free: 12.97 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.972e-05/0.3929, allocations: 87.27 kB / 1.123 GB, free: 12.88 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.3929, allocations: 3.938 kB / 1.123 GB, free: 12.88 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002491/0.3931, allocations: 23.94 kB / 1.123 GB, free: 12.86 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001384/0.3933, allocations: 107.2 kB / 1.123 GB, free: 12.74 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003121/0.3936, allocations: 99.75 kB / 1.123 GB, free: 12.64 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3936, allocations: 0 / 1.123 GB, free: 12.64 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.3937, allocations: 43.91 kB / 1.123 GB, free: 12.6 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.394, allocations: 12.12 kB / 1.123 GB, free: 12.59 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003567/0.3943, allocations: 162.8 kB / 1.123 GB, free: 12.4 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.053e-05/0.3944, allocations: 67.34 kB / 1.123 GB, free: 12.32 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.253e-05/0.3944, allocations: 8.5 kB / 1.123 GB, free: 12.31 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.259e-05/0.3945, allocations: 16.48 kB / 1.123 GB, free: 12.29 MB / 1.076 GB Notification: Performance of SimCode: time 3e-07/0.3945, allocations: 0 / 1.123 GB, free: 12.29 MB / 1.076 GB Notification: Performance of Templates: time 0.003859/0.3983, allocations: 1.086 MB / 1.124 GB, free: 11.23 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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: 8.890996528905816]