Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001698/0.001698, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002116/0.002116, allocations: 216.9 kB / 22.26 MB, free: 5.117 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.536/1.536, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.373/3.373, allocations: 0.505 GB / 0.8101 GB, free: 21.96 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_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.002045/0.002045, allocations: 62.14 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3759, allocations: 180.2 MB / 1.353 GB, free: 8.43 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00249/0.3783, allocations: 0.6931 MB / 1.354 GB, free: 7.738 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001917/0.3803, allocations: 1.12 MB / 1.355 GB, free: 6.605 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.989e-05/0.3803, allocations: 3.938 kB / 1.355 GB, free: 6.602 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.511e-05/0.3804, allocations: 3.938 kB / 1.355 GB, free: 6.598 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.873e-05/0.3804, allocations: 7.922 kB / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003429/0.3808, allocations: 43.84 kB / 1.355 GB, free: 6.547 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001669/0.381, allocations: 71.88 kB / 1.355 GB, free: 6.477 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.3811, allocations: 12 kB / 1.355 GB, free: 6.465 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.344e-05/0.3812, allocations: 27.92 kB / 1.355 GB, free: 6.438 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.58e-05/0.3812, allocations: 35.83 kB / 1.355 GB, free: 6.402 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.3813, allocations: 8 kB / 1.355 GB, free: 6.395 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.656e-05/0.3814, allocations: 23.92 kB / 1.355 GB, free: 6.371 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.964e-05/0.3814, allocations: 15.98 kB / 1.355 GB, free: 6.355 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.947e-05/0.3815, allocations: 31.86 kB / 1.355 GB, free: 6.324 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.3817, allocations: 83.89 kB / 1.355 GB, free: 6.242 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3817, allocations: 0 / 1.355 GB, free: 6.242 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3817, allocations: 4 kB / 1.355 GB, free: 6.238 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.125e-06/0.3817, allocations: 0 / 1.355 GB, free: 6.238 MB / 1.045 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.0007591/0.3824, allocations: 314.1 kB / 1.355 GB, free: 5.898 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.3825, allocations: 8.031 kB / 1.355 GB, free: 5.891 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.38e-05/0.3826, allocations: 38.75 kB / 1.355 GB, free: 5.844 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.3827, allocations: 8.891 kB / 1.355 GB, free: 5.836 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.3829, allocations: 110.5 kB / 1.355 GB, free: 5.703 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.726e-05/0.3829, allocations: 8.359 kB / 1.355 GB, free: 5.695 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.3829, allocations: 8.375 kB / 1.355 GB, free: 5.688 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.3832, allocations: 82.2 kB / 1.356 GB, free: 5.602 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.3832, allocations: 7.875 kB / 1.356 GB, free: 5.594 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.3832, allocations: 3.984 kB / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.3832, allocations: 0 / 1.356 GB, free: 5.59 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.3834, allocations: 55.95 kB / 1.356 GB, free: 5.535 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006006/0.3841, allocations: 287.7 kB / 1.356 GB, free: 5.211 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002122/0.3843, allocations: 74.53 kB / 1.356 GB, free: 5.129 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.3844, allocations: 36.83 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.3844, allocations: 4 kB / 1.356 GB, free: 5.086 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.3847, allocations: 91.5 kB / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.933e-06/0.3847, allocations: 0 / 1.356 GB, free: 4.984 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0005404/0.3853, allocations: 173.5 kB / 1.356 GB, free: 4.809 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.3853, allocations: 55.39 kB / 1.356 GB, free: 4.742 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.3854, allocations: 105.9 kB / 1.356 GB, free: 4.629 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.3854, allocations: 33.69 kB / 1.356 GB, free: 4.59 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.3855, allocations: 88.75 kB / 1.356 GB, free: 4.496 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.792e-05/0.3856, allocations: 31.77 kB / 1.357 GB, free: 4.465 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.47e-05/0.3856, allocations: 33.72 kB / 1.357 GB, free: 4.426 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3858, allocations: 322.8 kB / 1.357 GB, free: 4.102 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.3859, allocations: 43.91 kB / 1.357 GB, free: 4.059 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.3861, allocations: 57.36 kB / 1.357 GB, free: 3.996 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002602/0.3863, allocations: 106.7 kB / 1.357 GB, free: 3.883 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3863, allocations: 112 / 1.357 GB, free: 3.883 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003351/0.3867, allocations: 149.5 kB / 1.357 GB, free: 3.73 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3867, allocations: 12.06 kB / 1.357 GB, free: 3.719 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.3867, allocations: 0 / 1.357 GB, free: 3.719 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3867, allocations: 0 / 1.357 GB, free: 3.719 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.3869, allocations: 19.98 kB / 1.357 GB, free: 3.699 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.3869, allocations: 0 / 1.357 GB, free: 3.699 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.061e-05/0.3869, allocations: 23.88 kB / 1.357 GB, free: 3.676 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.387, allocations: 4 kB / 1.357 GB, free: 3.672 MB / 1.045 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.0001139/0.3871, allocations: 126.3 kB / 1.357 GB, free: 3.539 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.226e-05/0.3871, allocations: 15.94 kB / 1.357 GB, free: 3.523 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003647/0.3875, allocations: 138 kB / 1.358 GB, free: 3.383 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.3875, allocations: 4 kB / 1.358 GB, free: 3.379 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3875, allocations: 3.984 kB / 1.358 GB, free: 3.375 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3875, allocations: 0 / 1.358 GB, free: 3.375 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005989/0.3881, allocations: 373.5 kB / 1.358 GB, free: 2.961 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.3881, allocations: 4 kB / 1.358 GB, free: 2.957 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.322e-05/0.3881, allocations: 11.98 kB / 1.358 GB, free: 2.945 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3881, allocations: 3.938 kB / 1.358 GB, free: 2.941 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.3882, allocations: 4 kB / 1.358 GB, free: 2.938 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3882, allocations: 0 / 1.358 GB, free: 2.938 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3882, allocations: 0 / 1.358 GB, free: 2.938 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003942/0.3886, allocations: 243.4 kB / 1.358 GB, free: 2.684 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.709e-05/0.3886, allocations: 11.95 kB / 1.358 GB, free: 2.672 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.224e-05/0.3886, allocations: 0 / 1.358 GB, free: 2.672 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.3887, allocations: 15.98 kB / 1.358 GB, free: 2.656 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.3888, allocations: 15.84 kB / 1.358 GB, free: 2.641 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.3888, allocations: 4 kB / 1.358 GB, free: 2.637 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.106e-05/0.3888, allocations: 83.28 kB / 1.358 GB, free: 2.555 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3888, allocations: 0 / 1.358 GB, free: 2.555 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002735/0.3891, allocations: 23.98 kB / 1.358 GB, free: 2.531 MB / 1.045 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.0008396/0.39, allocations: 0.7709 MB / 1.359 GB, free: 1.734 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003211/0.3903, allocations: 91.88 kB / 1.359 GB, free: 1.645 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3903, allocations: 4.125 kB / 1.359 GB, free: 1.641 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.3904, allocations: 47.91 kB / 1.359 GB, free: 1.594 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.3907, allocations: 14.02 kB / 1.359 GB, free: 1.582 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/0.3928, allocations: 1.5 MB / 1.361 GB, free: 15.99 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.3931, allocations: 0.6884 MB / 1.361 GB, free: 15.27 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.24e-05/0.3932, allocations: 16.41 kB / 1.361 GB, free: 15.26 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.265e-05/0.3932, allocations: 15.44 kB / 1.361 GB, free: 15.24 MB / 1.061 GB Notification: Performance of SimCode: time 5.91e-07/0.3932, allocations: 3.938 kB / 1.361 GB, free: 15.24 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02998/0.4232, allocations: 2.211 MB / 1.364 GB, free: 13.16 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.79, allocations: 9.797 kB / 1.364 GB, free: 13.16 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.794194337213412]