Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001516/0.001516, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001467/0.001467, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.457/1.457, allocations: 230.6 MB / 256 MB, free: 7.785 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.4892 GB / 0.7943 GB, free: 35.57 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.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.002161/0.002161, allocations: 67.3 kB / 1.153 GB, free: 25.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3708, allocations: 176.1 MB / 1.325 GB, free: 2.418 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002589/0.3733, allocations: 0.6804 MB / 1.326 GB, free: 1.742 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001738/0.3751, allocations: 1.097 MB / 1.327 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.493e-05/0.3751, allocations: 0 / 1.327 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.636e-05/0.3752, allocations: 3.938 kB / 1.327 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.628e-05/0.3753, allocations: 11.92 kB / 1.327 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003252/0.3756, allocations: 59.81 kB / 1.327 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.3757, allocations: 67.78 kB / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.3758, allocations: 7.984 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.032e-05/0.3759, allocations: 27.92 kB / 1.327 GB, free: 468 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.939e-05/0.376, allocations: 31.89 kB / 1.327 GB, free: 436 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.001e-05/0.376, allocations: 8 kB / 1.327 GB, free: 428 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.31e-05/0.3761, allocations: 20 kB / 1.327 GB, free: 408 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.029e-05/0.3761, allocations: 15.92 kB / 1.327 GB, free: 392 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.587e-05/0.3761, allocations: 31.84 kB / 1.327 GB, free: 360 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001791/0.3763, allocations: 79.97 kB / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3763, allocations: 4 kB / 1.327 GB, free: 276 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3763, allocations: 0 / 1.327 GB, free: 276 kB / 1.014 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.3763, allocations: 0 / 1.327 GB, free: 276 kB / 1.014 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.0006965/0.377, allocations: 312 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.3771, allocations: 12.03 kB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.758e-05/0.3771, allocations: 38.69 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.843e-05/0.3772, allocations: 4.938 kB / 1.327 GB, free: 15.87 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3773, allocations: 110.5 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.3774, allocations: 8.359 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.865e-05/0.3774, allocations: 12.38 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.3776, allocations: 78.16 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3776, allocations: 7.938 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.3776, allocations: 3.984 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.3776, allocations: 3.984 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.3778, allocations: 55.89 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005858/0.3784, allocations: 275.8 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/0.3787, allocations: 70.55 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.3788, allocations: 36.83 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.3788, allocations: 4 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.3791, allocations: 91.48 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.713e-06/0.3791, allocations: 0 / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005363/0.3796, allocations: 173.5 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.398e-05/0.3797, allocations: 55.41 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.3798, allocations: 114 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.3798, allocations: 34.08 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.07e-05/0.3799, allocations: 88.38 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.157e-05/0.3799, allocations: 27.78 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.717e-05/0.3799, allocations: 29.7 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.3801, allocations: 326.7 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.3802, allocations: 36.08 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.3804, allocations: 76.78 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/0.3806, allocations: 98.48 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3806, allocations: 0 / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003181/0.381, allocations: 137.5 kB / 1.329 GB, free: 13.78 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.381, allocations: 12.05 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.381, allocations: 0 / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.381, allocations: 4 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.3811, allocations: 19.92 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.3811, allocations: 4 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.146e-05/0.3812, allocations: 11.95 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.3812, allocations: 7.984 kB / 1.329 GB, free: 13.72 MB / 1.029 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 0.000124/0.3814, allocations: 138.2 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.406e-05/0.3814, allocations: 0 / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003691/0.3817, allocations: 149.9 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3818, allocations: 0 / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3818, allocations: 0 / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3818, allocations: 4 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005811/0.3823, allocations: 381.4 kB / 1.33 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.3823, allocations: 3.984 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.942e-05/0.3824, allocations: 8 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3824, allocations: 4 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.3824, allocations: 3.984 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3824, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3824, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/0.3828, allocations: 251.4 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.068e-05/0.3829, allocations: 0 / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.3829, allocations: 7.984 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.383, allocations: 11.98 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.383, allocations: 7.938 kB / 1.33 GB, free: 12.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.383, allocations: 7.984 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.869e-05/0.3831, allocations: 91.28 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3831, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002655/0.3834, allocations: 16 kB / 1.33 GB, free: 12.57 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: 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.0007847/0.3842, allocations: 0.7787 MB / 1.331 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003588/0.3845, allocations: 99.98 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3845, allocations: 0 / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.3847, allocations: 43.91 kB / 1.331 GB, free: 11.63 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.3849, allocations: 12.14 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.387, allocations: 1.506 MB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.672e-05/0.387, allocations: 75.27 kB / 1.333 GB, free: 9.93 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.107e-05/0.3871, allocations: 12.42 kB / 1.333 GB, free: 9.918 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.208e-05/0.3871, allocations: 23.36 kB / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of SimCode: time 8.82e-07/0.3871, allocations: 0 / 1.333 GB, free: 9.895 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03319/0.4203, allocations: 2.631 MB / 1.336 GB, free: 7.402 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.62, allocations: 5.953 kB / 1.336 GB, free: 7.402 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.473852233029902]