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.001269/0.001269, 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.001425/0.001425, allocations: 219.5 kB / 22.24 MB, free: 5.25 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.443/1.443, allocations: 230.6 MB / 256 MB, free: 7.789 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.227/3.227, 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.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.002034/0.002034, allocations: 62.12 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3695, allocations: 176.1 MB / 1.326 GB, free: 1.527 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001992/0.3715, allocations: 0.6846 MB / 1.327 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001495/0.373, allocations: 1.097 MB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.191e-05/0.3731, allocations: 0 / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.469e-05/0.3731, allocations: 7.922 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.183e-05/0.3731, allocations: 3.938 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.3735, allocations: 59.77 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.3736, allocations: 71.81 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.3737, allocations: 8 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.072e-05/0.3738, allocations: 27.92 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.538e-05/0.3738, allocations: 35.91 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.791e-05/0.3739, allocations: 8 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.537e-05/0.3739, allocations: 31.91 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.636e-05/0.374, allocations: 7.984 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.348e-05/0.374, allocations: 23.92 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.3742, allocations: 79.97 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3742, allocations: 0 / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3742, allocations: 3.938 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.3742, allocations: 0 / 1.328 GB, free: 15.38 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006528/0.3748, allocations: 314.1 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3749, allocations: 12.03 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.549e-05/0.3749, allocations: 38.73 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.762e-05/0.375, allocations: 4.938 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.3751, allocations: 114.5 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.3751, allocations: 8.312 kB / 1.328 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.053e-05/0.3751, allocations: 8.375 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002326/0.3754, allocations: 82.14 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.3754, allocations: 3.938 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3754, allocations: 8 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.3754, allocations: 3.938 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002056/0.3756, allocations: 51.95 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005036/0.3761, allocations: 267.8 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.3763, allocations: 74.53 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.3765, allocations: 44.95 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.3765, allocations: 3.984 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00025/0.3767, allocations: 99.25 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.3767, allocations: 0 / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005363/0.3773, allocations: 165.6 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.3773, allocations: 59.39 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.642e-05/0.3774, allocations: 109.8 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.77e-05/0.3774, allocations: 37.7 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.971e-05/0.3775, allocations: 80.38 kB / 1.329 GB, free: 13.64 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.133e-05/0.3775, allocations: 27.78 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-05/0.3776, allocations: 33.83 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3778, allocations: 330.7 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.3779, allocations: 35.97 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.378, allocations: 62.48 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002459/0.3783, allocations: 106.5 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3783, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003294/0.3786, allocations: 137.5 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3786, allocations: 4 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.3786, allocations: 0 / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.3786, allocations: 4 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.3788, allocations: 23.98 kB / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.3788, allocations: 7.984 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.424e-05/0.3789, allocations: 15.89 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.3789, allocations: 4 kB / 1.33 GB, free: 12.82 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.0001163/0.379, allocations: 139.9 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.521e-05/0.379, allocations: 4 kB / 1.33 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003863/0.3794, allocations: 142.4 kB / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3794, allocations: 256 / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3794, allocations: 8.031 kB / 1.33 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.3794, allocations: 7.938 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000544/0.38, allocations: 373.5 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.38, allocations: 0 / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.967e-05/0.38, allocations: 11.98 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.38, allocations: 0 / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.38, allocations: 4 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.38, allocations: 0 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.38, allocations: 0 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000434/0.3805, allocations: 255.2 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-06/0.3805, allocations: 0 / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.3805, allocations: 4 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.3806, allocations: 7.984 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.3807, allocations: 15.92 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.3807, allocations: 0 / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.346e-05/0.3807, allocations: 91.27 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3807, allocations: 0 / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002599/0.381, allocations: 12 kB / 1.331 GB, free: 11.69 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.0007448/0.3817, allocations: 0.7841 MB / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003099/0.382, allocations: 100 kB / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.382, allocations: 0 / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.3822, allocations: 43.97 kB / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.3824, allocations: 16.05 kB / 1.332 GB, free: 10.72 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.3843, allocations: 1.503 MB / 1.334 GB, free: 9.133 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.825e-05/0.3843, allocations: 71.28 kB / 1.334 GB, free: 9.043 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.303e-05/0.3844, allocations: 20.41 kB / 1.334 GB, free: 9.023 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.873e-05/0.3844, allocations: 15.44 kB / 1.334 GB, free: 9.008 MB / 1.029 GB Notification: Performance of SimCode: time 5.11e-07/0.3844, allocations: 0 / 1.334 GB, free: 9.008 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.031/0.4154, allocations: 2.667 MB / 1.336 GB, free: 6.48 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.69, allocations: 6.047 kB / 1.336 GB, free: 6.477 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.371780983987264]