Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001316/0.001316, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.001556/0.001556, allocations: 217 kB / 22.25 MB, free: 5.082 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 8.031 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.512/3.512, allocations: 0.505 GB / 0.8101 GB, free: 22.1 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.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",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.002072/0.002072, allocations: 68.61 kB / 1.177 GB, free: 17.29 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3703, allocations: 180.2 MB / 1.353 GB, free: 8.664 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002153/0.3725, allocations: 0.6736 MB / 1.354 GB, free: 7.992 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001623/0.3741, allocations: 1.116 MB / 1.355 GB, free: 6.863 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.109e-05/0.3741, allocations: 0 / 1.355 GB, free: 6.863 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.078e-05/0.3742, allocations: 3.938 kB / 1.355 GB, free: 6.859 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.426e-05/0.3742, allocations: 7.922 kB / 1.355 GB, free: 6.852 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000325/0.3746, allocations: 51.83 kB / 1.355 GB, free: 6.801 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.3747, allocations: 43.92 kB / 1.355 GB, free: 6.758 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.3748, allocations: 11.97 kB / 1.355 GB, free: 6.746 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.45e-05/0.3749, allocations: 27.86 kB / 1.355 GB, free: 6.719 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.195e-05/0.3749, allocations: 19.92 kB / 1.355 GB, free: 6.699 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.3749, allocations: 4 kB / 1.355 GB, free: 6.695 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.07e-05/0.375, allocations: 19.98 kB / 1.355 GB, free: 6.676 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.62e-05/0.375, allocations: 23.91 kB / 1.355 GB, free: 6.652 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.714e-05/0.3751, allocations: 11.94 kB / 1.355 GB, free: 6.641 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.3753, allocations: 71.98 kB / 1.355 GB, free: 6.57 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3753, allocations: 4 kB / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3753, allocations: 0 / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.063e-05/0.3753, allocations: 0 / 1.355 GB, free: 6.566 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006099/0.3759, allocations: 290.2 kB / 1.355 GB, free: 6.25 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.3759, allocations: 15.97 kB / 1.355 GB, free: 6.234 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.164e-05/0.376, allocations: 38.73 kB / 1.355 GB, free: 6.188 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.297e-05/0.3761, allocations: 4.938 kB / 1.355 GB, free: 6.184 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.3762, allocations: 122.4 kB / 1.355 GB, free: 6.039 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.3762, allocations: 384 / 1.355 GB, free: 6.039 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.3763, allocations: 8.375 kB / 1.355 GB, free: 6.031 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002309/0.3765, allocations: 70.22 kB / 1.355 GB, free: 5.957 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3765, allocations: 3.938 kB / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.3765, allocations: 0 / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3765, allocations: 0 / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.3767, allocations: 43.95 kB / 1.355 GB, free: 5.91 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005131/0.3772, allocations: 259.8 kB / 1.356 GB, free: 5.613 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.3774, allocations: 50.55 kB / 1.356 GB, free: 5.555 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.3775, allocations: 24.97 kB / 1.356 GB, free: 5.527 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.3776, allocations: 4 kB / 1.356 GB, free: 5.523 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.3778, allocations: 75.38 kB / 1.356 GB, free: 5.438 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.3778, allocations: 0 / 1.356 GB, free: 5.438 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004537/0.3783, allocations: 125.5 kB / 1.356 GB, free: 5.309 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.3783, allocations: 55.41 kB / 1.356 GB, free: 5.242 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.3784, allocations: 109.8 kB / 1.356 GB, free: 5.125 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.3785, allocations: 29.7 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.799e-05/0.3785, allocations: 80.14 kB / 1.356 GB, free: 5.008 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.3786, allocations: 31.84 kB / 1.356 GB, free: 4.977 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.3786, allocations: 25.72 kB / 1.356 GB, free: 4.945 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3788, allocations: 318.8 kB / 1.357 GB, free: 4.625 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.3789, allocations: 27.92 kB / 1.357 GB, free: 4.598 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.379, allocations: 64.2 kB / 1.357 GB, free: 4.52 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.3792, allocations: 96.17 kB / 1.357 GB, free: 4.41 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3792, allocations: 4 kB / 1.357 GB, free: 4.406 MB / 1.045 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000315/0.3795, allocations: 109.6 kB / 1.357 GB, free: 4.293 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.3796, allocations: 8 kB / 1.357 GB, free: 4.285 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3796, allocations: 0 / 1.357 GB, free: 4.285 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3796, allocations: 3.938 kB / 1.357 GB, free: 4.281 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.3797, allocations: 15.98 kB / 1.357 GB, free: 4.266 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.3797, allocations: 8.125 kB / 1.357 GB, free: 4.258 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.654e-05/0.3798, allocations: 11.94 kB / 1.357 GB, free: 4.246 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.3798, allocations: 8.188 kB / 1.357 GB, free: 4.238 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001645/0.38, allocations: 121.7 kB / 1.357 GB, free: 4.109 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.979e-05/0.38, allocations: 11.92 kB / 1.357 GB, free: 4.098 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003025/0.3803, allocations: 106 kB / 1.357 GB, free: 3.988 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3803, allocations: 0 / 1.357 GB, free: 3.988 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3803, allocations: 4 kB / 1.357 GB, free: 3.984 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3803, allocations: 0 / 1.357 GB, free: 3.984 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005804/0.3809, allocations: 337.8 kB / 1.357 GB, free: 3.605 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3809, allocations: 0 / 1.357 GB, free: 3.605 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.951e-05/0.381, allocations: 11.98 kB / 1.358 GB, free: 3.594 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.381, allocations: 0 / 1.358 GB, free: 3.594 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.381, allocations: 256 / 1.358 GB, free: 3.594 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.381, allocations: 4 kB / 1.358 GB, free: 3.59 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.381, allocations: 4 kB / 1.358 GB, free: 3.586 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.3813, allocations: 199.5 kB / 1.358 GB, free: 3.375 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.528e-05/0.3813, allocations: 11.89 kB / 1.358 GB, free: 3.363 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.887e-05/0.3814, allocations: 0 / 1.358 GB, free: 3.363 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.3815, allocations: 15.92 kB / 1.358 GB, free: 3.348 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.3815, allocations: 15.92 kB / 1.358 GB, free: 3.332 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.3815, allocations: 4 kB / 1.358 GB, free: 3.328 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.113e-05/0.3816, allocations: 83.28 kB / 1.358 GB, free: 3.246 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.3816, allocations: 0 / 1.358 GB, free: 3.246 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002539/0.3818, allocations: 15.94 kB / 1.358 GB, free: 3.23 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * 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.00074/0.3826, allocations: 0.7358 MB / 1.359 GB, free: 2.469 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002779/0.3828, allocations: 63.89 kB / 1.359 GB, free: 2.406 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3828, allocations: 0 / 1.359 GB, free: 2.406 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.383, allocations: 35.91 kB / 1.359 GB, free: 2.371 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.3832, allocations: 13.44 kB / 1.359 GB, free: 2.359 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.3851, allocations: 1.419 MB / 1.36 GB, free: 0.8359 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.3855, allocations: 0.6807 MB / 1.361 GB, free: 132 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.912e-05/0.3856, allocations: 4.094 kB / 1.361 GB, free: 128 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.549e-05/0.3856, allocations: 23.36 kB / 1.361 GB, free: 104 kB / 1.045 GB Notification: Performance of SimCode: time 5.71e-07/0.3856, allocations: 0 / 1.361 GB, free: 104 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03157/0.4172, allocations: 1.961 MB / 1.363 GB, free: 14.28 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.59, allocations: 6.25 kB / 1.363 GB, free: 14.27 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.736600423930213]